mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
fix needing to reindex chainstate after pegin
This commit is contained in:
parent
c1820ce4b9
commit
697f03a17e
2 changed files with 3 additions and 2 deletions
|
|
@ -37,7 +37,8 @@ bool CCoinsViewDB::NeedsUpgrade()
|
|||
// DB_COINS was deprecated in v0.15.0, commit
|
||||
// 1088b02f0ccd7358d2b7076bb9e122d59d502d02
|
||||
cursor->Seek(std::make_pair(DB_COINS, uint256{}));
|
||||
return cursor->Valid();
|
||||
std::pair<unsigned char, uint256> key;
|
||||
return cursor->Valid() && cursor->GetKey(key) && key.first == DB_COINS;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
|
|
|||
|
|
@ -866,7 +866,7 @@ class PeginSubsidyTest(BitcoinTestFramework):
|
|||
# dust error
|
||||
# restart node1 with no min peg-in amount
|
||||
self.stop_node(1, expected_stderr=self.expected_stderr) # when running with bitcoind as parent node this stderr can occur
|
||||
self.start_node(1, extra_args=sidechain.extra_args + ["-peginminamount=0", "-reindex-chainstate"]) # ELEMENTS FIXME: figure out why we need to reindex chanstate for this restart
|
||||
self.start_node(1, extra_args=sidechain.extra_args + ["-peginminamount=0"])
|
||||
self.log.info("claimpegin dust error")
|
||||
amount = Decimal("0.00000546") if self.options.parent_bitcoin else Decimal("0.00000645")
|
||||
txid, vout, txoutproof, bitcoin_txhex, claim_script = parent_pegin(parent, sidechain, amount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue