mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 07087051af into merged_master (Bitcoin PR #19556)
Added a method testPeginClaimAcceptance to interfaces::CChain. It is not clear to me that this is meaningfully different from the existing method broadcastTransaction (with the `relay` flag set to false so it doesn't actually broadcast), except that this method returns the TxValidationState, which we display to the user in the RPC error. Worth revisiting this. Another nonobvious change was replacing a block of mempool-searching logic in wallet/rpcwallet.cpp with the single line `pwallet->chain().findCoins(coins)`. This I stole from the current state of upstream #17211, our favorite in-progress PR from which the original logic came.
This commit is contained in:
commit
2a0cf12ecc
13 changed files with 55 additions and 47 deletions
|
|
@ -154,7 +154,6 @@ arith_uint256 nMinimumChainWork;
|
|||
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
|
||||
|
||||
CBlockPolicyEstimator feeEstimator;
|
||||
CTxMemPool mempool(&feeEstimator);
|
||||
|
||||
// Internal stuff
|
||||
namespace {
|
||||
|
|
@ -4564,6 +4563,14 @@ bool static LoadBlockIndexDB(ChainstateManager& chainman, const CChainParams& ch
|
|||
return true;
|
||||
}
|
||||
|
||||
void CChainState::LoadMempool(const ArgsManager& args)
|
||||
{
|
||||
if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
|
||||
::LoadMempool(m_mempool);
|
||||
}
|
||||
m_mempool.SetIsLoaded(!ShutdownRequested());
|
||||
}
|
||||
|
||||
bool CChainState::LoadChainTip(const CChainParams& chainparams)
|
||||
{
|
||||
AssertLockHeld(cs_main);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue