Open gsmachado opened 3 years ago
@superboyiii @cloud8little can you or someone else check this one?
@superboyiii @cloud8little can you or someone else check this one?
When there's a mismatch of Magic and Network attributes, the consensus can't start.
Yes, it is intended, when the network id mismatch, the plugin won't work. for all plugins, the same.
Different network configuration is used to connect to different Neo instance. It will used for NEOFs network in later design.
So, the Magic
and Network
attributes SHOULD be the same?
If yes:
Magic
attribute is not extinguished and only Network
is used?If no:
Magic
and Network
attributes affect neo-node functionality?I recently ran into this again, I think there should be a more friendly error message when the magic/network versions mismatch than "Object reference not set to an instance of of an object".
Describe the bug
When there's a mismatch of
Magic
andNetwork
attributes, the consensus can't start.Probably this is intended. In this case, however, better error messages should be provided.
Or, if this is not intended, can
Magic
be set to a value andNetwork
to another one (in all Plugins ofneo-modules
)?Another thing, is:
Magic
attribute in theProtocolConfiguration
is still necessary with the introduction ofNetwork
? If yes, for which use cases?To Reproduce
If
Magic
is set to769
in theProtocolConfiguration
but all otherNetwork
attributes are set to5195086
(in all plugins):If
Magic
is set to5195086
in theProtocolConfiguration
but the wallet is not re-generated (i.e.,wallet.json
was generated still with769
):Platform:
neo-node
on commita636e8b
neo-modules
on commitb54fb54
3.0.0-CI01238