mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-26 23:09:03 +02:00
test: Check submitblock return values
This commit is contained in:
@@ -324,7 +324,7 @@ class BIP68Test(BitcoinTestFramework):
|
||||
block.solve()
|
||||
tip = block.sha256
|
||||
height += 1
|
||||
self.nodes[0].submitblock(ToHex(block))
|
||||
assert_equal(None if i == 1 else 'inconclusive', self.nodes[0].submitblock(ToHex(block)))
|
||||
cur_time += 1
|
||||
|
||||
mempool = self.nodes[0].getrawmempool()
|
||||
@@ -381,7 +381,7 @@ class BIP68Test(BitcoinTestFramework):
|
||||
add_witness_commitment(block)
|
||||
block.solve()
|
||||
|
||||
self.nodes[0].submitblock(block.serialize().hex())
|
||||
assert_equal(None, self.nodes[0].submitblock(block.serialize().hex()))
|
||||
assert_equal(self.nodes[0].getbestblockhash(), block.hash)
|
||||
|
||||
def activateCSV(self):
|
||||
|
||||
Reference in New Issue
Block a user