Merge #8418: Add tests for compact blocks
45c7dddAdd p2p test for BIP 152 (compact blocks) (Suhas Daftuar)9a22a6cAdd support for compactblocks to mininode (Suhas Daftuar)a8689fdTests: refactor compact size serialization in mininode (Suhas Daftuar)9c8593dImplement SipHash in Python (Pieter Wuille)56c87e9Allow changing BIP9 parameters on regtest (Suhas Daftuar)
This commit is contained in:
@@ -122,6 +122,10 @@ BOOST_AUTO_TEST_CASE(siphash)
|
||||
hasher3.Write(uint64_t(x)|(uint64_t(x+1)<<8)|(uint64_t(x+2)<<16)|(uint64_t(x+3)<<24)|
|
||||
(uint64_t(x+4)<<32)|(uint64_t(x+5)<<40)|(uint64_t(x+6)<<48)|(uint64_t(x+7)<<56));
|
||||
}
|
||||
|
||||
CHashWriter ss(SER_DISK, CLIENT_VERSION);
|
||||
ss << CTransaction();
|
||||
BOOST_CHECK_EQUAL(SipHashUint256(1, 2, ss.GetHash()), 0x79751e980c2a0a35ULL);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
Reference in New Issue
Block a user