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
No related branches found
No related tags found
No related merge requests found
...@@ -168,11 +168,17 @@ class WitnessProps(GrapheneObject): ...@@ -168,11 +168,17 @@ class WitnessProps(GrapheneObject):
if len(args) == 1 and len(kwargs) == 0: if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0] kwargs = args[0]
prefix = kwargs.get("prefix", default_prefix) prefix = kwargs.get("prefix", default_prefix)
super(WitnessProps, self).__init__(OrderedDict([ if "sbd_interest_rate" in kwargs:
('account_creation_fee', Amount(kwargs["account_creation_fee"], prefix=prefix)), super(WitnessProps, self).__init__(OrderedDict([
('maximum_block_size', Uint32(kwargs["maximum_block_size"])), ('account_creation_fee', Amount(kwargs["account_creation_fee"], prefix=prefix)),
('sbd_interest_rate', Uint16(kwargs["sbd_interest_rate"])), ('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): class Price(GrapheneObject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment