Skip to content

Commit

Permalink
epobc genesis padding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
killerstorm committed Feb 12, 2014
1 parent 1a6dea6 commit cac5cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coloredcoinlib/colordef.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def compose_genesis_tx_spec(cls, op_tx_spec):
'genesis transaction target should use -1 color_id')
fee = op_tx_spec.get_required_fee(300)
g_value = g_target.get_value()
padding_needed = g_value - op_tx_spec.get_dust_threshold().get_value()
padding_needed = op_tx_spec.get_dust_threshold().get_value() - g_value
tag = cls.Tag(cls.Tag.closest_padding_code(padding_needed), True)
padding = tag.get_padding()
uncolored_needed = SimpleColorValue(colordef=UNCOLORED_MARKER,
Expand Down

0 comments on commit cac5cf9

Please sign in to comment.