merged changes from RC_1_0

This commit is contained in:
Arvid Norberg
2014-11-03 06:15:51 +00:00
parent 3742fd2699
commit 601f0dc434
13 changed files with 106 additions and 18 deletions

View File

@@ -617,6 +617,16 @@ int test_main()
fprintf(stderr, " invalid get_peers response: %s\n", error_string);
}
// ====== test node ID testing =====
{
node_id rnd = generate_random_id();
TEST_CHECK(verify_random_id(rnd));
rnd[19] ^= 0x55;
TEST_CHECK(!verify_random_id(rnd));
}
// ====== test node ID enforcement ======
// enable node_id enforcement