mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 5d83e7d714 into merged_master (Bitcoin PR bitcoin/bitcoin#21090)
We comment out a newly-added assert from the Bitcoin side, because it's unclear how to replicate it correctly in Elements. Co-authored-by: Glenn Willen <gwillen@nerdnet.org>
This commit is contained in:
commit
17e6efe7fe
9 changed files with 121 additions and 139 deletions
|
|
@ -770,7 +770,7 @@ namespace { // Variables internal to initialization process only
|
|||
int nMaxConnections;
|
||||
int nUserMaxConnections;
|
||||
int nFD;
|
||||
ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK | NODE_NETWORK_LIMITED);
|
||||
ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK | NODE_NETWORK_LIMITED | NODE_WITNESS);
|
||||
int64_t peer_connect_timeout;
|
||||
std::set<BlockFilterType> g_enabled_filter_types;
|
||||
|
||||
|
|
@ -1728,12 +1728,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||
nLocalServices = ServiceFlags(nLocalServices & ~NODE_NETWORK_LIMITED);
|
||||
}
|
||||
|
||||
if (DeploymentEnabled(chainparams.GetConsensus(), Consensus::DEPLOYMENT_SEGWIT)) {
|
||||
// Advertise witness capabilities.
|
||||
// The option to not set NODE_WITNESS is only used in the tests and should be removed.
|
||||
nLocalServices = ServiceFlags(nLocalServices | NODE_WITNESS);
|
||||
}
|
||||
|
||||
// ********************************************************* Step 11: import blocks
|
||||
|
||||
if (!CheckDiskSpace(gArgs.GetDataDirNet())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue