MCPcopy Create free account
hub / github.com/ElementsProject/elements / check_fee_amount

Method check_fee_amount

test/functional/wallet_basic.py:46–50  ·  view source on GitHub ↗

Return curr_balance after asserting the fee was in range

(self, curr_balance, balance_with_fee, fee_per_byte, tx_size)

Source from the content-addressed store, hash-verified

44 self.sync_all(self.nodes[0:3])
45
46 def check_fee_amount(self, curr_balance, balance_with_fee, fee_per_byte, tx_size):
47 """Return curr_balance after asserting the fee was in range"""
48 fee = balance_with_fee - curr_balance
49 assert_fee_amount(fee, tx_size, fee_per_byte * 1000)
50 return curr_balance
51
52 def get_vsize(self, txn):
53 return self.nodes[0].decoderawtransaction(txn)['vsize']

Callers 1

run_testMethod · 0.95

Calls 1

assert_fee_amountFunction · 0.90

Tested by

no test coverage detected