code review

Signed-off-by: Pasta <Pasta@dash.org>
This commit is contained in:
Pasta 2019-04-03 07:40:18 -05:00
parent 720f13d694
commit 9cef545aca
No known key found for this signature in database
GPG Key ID: 0B8EB7A31A44D9C6
3 changed files with 3 additions and 3 deletions

0
qa/rpc-tests/__init__.py Normal file
View File

View File

@ -101,7 +101,7 @@ class NULLDUMMYTest(BitcoinTestFramework):
def block_submit(self, node, txs, accept = False):
dip4_activated = self.lastblockheight + 1 >= 432
dip4_activated = self.lastblockheight + 1 >= 432
block = create_block(self.tip, create_coinbase(self.lastblockheight + 1, dip4_activated=dip4_activated), self.lastblocktime + 1)
block.nVersion = 4
for tx in txs:

View File

@ -110,8 +110,8 @@ class PrioritiseTransactionTest(BitcoinTestFramework):
tx_id = self.nodes[0].decoderawtransaction(tx_hex)["txid"]
# This will raise an exception due to min relay fee not being met
assert_raises_jsonrpc(-26, "66: insufficient priority", self.nodes[0].sendrawtransaction, tx2_hex)
assert(tx2_id not in self.nodes[0].getrawmempool())
assert_raises_jsonrpc(-26, "66: min relay fee not met", self.nodes[0].sendrawtransaction, tx2_hex)
assert(tx_id not in self.nodes[0].getrawmempool())
# This is a less than 1000-byte transaction, so just set the fee
# to be the minimum for a 1000 byte transaction and check that it is