mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-03 09:23:01 +01:00
chainparams: add allowed assumeutxo values
Values for mainnet and testnet will be specified in a follow-up PR that can be scrutinized accordingly. This structure is required for use in snapshot activation logic.
This commit is contained in:
committed by
James O'Beirne
parent
e9c037ba64
commit
7a6c46b37e
@@ -8,7 +8,6 @@
|
||||
#include <chainparamsseeds.h>
|
||||
#include <consensus/merkle.h>
|
||||
#include <hash.h> // for signet block challenge hash
|
||||
#include <tinyformat.h>
|
||||
#include <util/system.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <versionbitsinfo.h>
|
||||
@@ -161,6 +160,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
m_assumeutxo_data = MapAssumeutxo{
|
||||
// TODO to be specified in a future patch.
|
||||
};
|
||||
|
||||
chainTxData = ChainTxData{
|
||||
// Data from RPC: getchaintxstats 4096 0000000000000000000b9d2ec5a352ecba0592946514a92f14319dc2b367fc72
|
||||
/* nTime */ 1603995752,
|
||||
@@ -250,6 +253,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
m_assumeutxo_data = MapAssumeutxo{
|
||||
// TODO to be specified in a future patch.
|
||||
};
|
||||
|
||||
chainTxData = ChainTxData{
|
||||
// Data from RPC: getchaintxstats 4096 000000000000006433d1efec504c53ca332b64963c425395515b01977bd7b3b0
|
||||
/* nTime */ 1603359686,
|
||||
@@ -431,6 +438,17 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
m_assumeutxo_data = MapAssumeutxo{
|
||||
{
|
||||
110,
|
||||
{uint256S("0x76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10"), 110},
|
||||
},
|
||||
{
|
||||
210,
|
||||
{uint256S("0x9c5ed99ef98544b34f8920b6d1802f72ac28ae6e2bd2bd4c316ff10c230df3f2"), 210},
|
||||
},
|
||||
};
|
||||
|
||||
chainTxData = ChainTxData{
|
||||
0,
|
||||
0,
|
||||
@@ -526,3 +544,9 @@ void SelectParams(const std::string& network)
|
||||
SelectBaseParams(network);
|
||||
globalChainParams = CreateChainParams(gArgs, network);
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const AssumeutxoData& aud)
|
||||
{
|
||||
o << strprintf("AssumeutxoData(%s, %s)", aud.hash_serialized.ToString(), aud.nChainTx);
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user