Skip to content
Snippets Groups Projects
Commit fc0a2907 authored by svitx's avatar svitx
Browse files

Exclude sbd_interest_rate, as it is not present on the VIT blockchain

parent 373fcc6e
Branches
Tags
No related merge requests found
......@@ -168,11 +168,17 @@ class WitnessProps(GrapheneObject):
if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0]
prefix = kwargs.get("prefix", default_prefix)
super(WitnessProps, self).__init__(OrderedDict([
('account_creation_fee', Amount(kwargs["account_creation_fee"], prefix=prefix)),
('maximum_block_size', Uint32(kwargs["maximum_block_size"])),
('sbd_interest_rate', Uint16(kwargs["sbd_interest_rate"])),
]))
if "sbd_interest_rate" in kwargs:
super(WitnessProps, self).__init__(OrderedDict([
('account_creation_fee', Amount(kwargs["account_creation_fee"], prefix=prefix)),
('maximum_block_size', Uint32(kwargs["maximum_block_size"])),
('sbd_interest_rate', Uint16(kwargs["sbd_interest_rate"])),
]))
else:
super(WitnessProps, self).__init__(OrderedDict([
('account_creation_fee', Amount(kwargs["account_creation_fee"], prefix=prefix)),
('maximum_block_size', Uint32(kwargs["maximum_block_size"])),
]))
class Price(GrapheneObject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment