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

Method get_vsize

test/functional/test_framework/messages.py:934–935  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

932 return (WITNESS_SCALE_FACTOR - 1) * without_witness_size + with_witness_size
933
934 def get_vsize(self):
935 return math.ceil(self.get_weight() / WITNESS_SCALE_FACTOR)
936
937 def __repr__(self):
938 return "CTransaction(nVersion=%i vin=%s vout=%s wit=%s nLockTime=%i)" \

Callers 4

run_testMethod · 0.95
test_standardness_v0Method · 0.95
send_txFunction · 0.95

Calls 1

get_weightMethod · 0.95

Tested by 2

test_standardness_v0Method · 0.76