Send the correct error code in reject messages
This commit is contained in:
1 parent
edc62c959a
commit
5d08c9c579
3 files changed
+11
-9
No files matched your search
@@ -398,7 +398,7 @@ class FullBlockTest(ComparisonTestFramework):
|
||||
|
||||
# Extend the b26 chain to make sure bitcoind isn't accepting b26
|
||||
b27 = block(27, spend=out[7])
|
||||
yield rejected(RejectResult(0, b'bad-prevblk'))
|
||||
yield rejected(False)
|
||||
|
||||
# Now try a too-large-coinbase script
|
||||
tip(15)
|
||||
@@ -410,7 +410,7 @@ class FullBlockTest(ComparisonTestFramework):
|
||||
|
||||
# Extend the b28 chain to make sure bitcoind isn't accepting b28
|
||||
b29 = block(29, spend=out[7])
|
||||
yield rejected(RejectResult(0, b'bad-prevblk'))
|
||||
yield rejected(False)
|
||||
|
||||
# b30 has a max-sized coinbase scriptSig.
|
||||
tip(23)
|
||||
|
||||
Reference in new issue
Block a user