mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 02:24:58 +01:00
Merge #8393: Support for compact blocks together with segwit
27acfc1[qa] Update p2p-compactblocks.py for compactblocks v2 (Suhas Daftuar)422fac6[qa] Add support for compactblocks v2 to mininode (Suhas Daftuar)f5b9b8f[qa] Fix bug in mininode witness deserialization (Suhas Daftuar)6aa28abUse cmpctblock type 2 for segwit-enabled transfer (Pieter Wuille)be7555fFix overly-prescriptive p2p-segwit test for new fetch logic (Matt Corallo)06128daMake GetFetchFlags always request witness objects from witness peers (Matt Corallo)
This commit is contained in:
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(SimpleRoundTripTest)
|
||||
|
||||
// Do a simple ShortTxIDs RT
|
||||
{
|
||||
CBlockHeaderAndShortTxIDs shortIDs(block);
|
||||
CBlockHeaderAndShortTxIDs shortIDs(block, true);
|
||||
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
stream << shortIDs;
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
stream >> *this;
|
||||
}
|
||||
TestHeaderAndShortIDs(const CBlock& block) :
|
||||
TestHeaderAndShortIDs(CBlockHeaderAndShortTxIDs(block)) {}
|
||||
TestHeaderAndShortIDs(CBlockHeaderAndShortTxIDs(block, true)) {}
|
||||
|
||||
uint64_t GetShortID(const uint256& txhash) const {
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
@@ -267,7 +267,7 @@ BOOST_AUTO_TEST_CASE(EmptyBlockRoundTripTest)
|
||||
|
||||
// Test simple header round-trip with only coinbase
|
||||
{
|
||||
CBlockHeaderAndShortTxIDs shortIDs(block);
|
||||
CBlockHeaderAndShortTxIDs shortIDs(block, false);
|
||||
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
stream << shortIDs;
|
||||
|
||||
Reference in New Issue
Block a user