Replies: 1 comment
-
Unlike other components of AppProtocolVersion apv = new AppProtocolVersion("it should be hard-coded in the app code");
if (config.Testnet)
{
AppProtocolVersion apv = apv.WithNetworkId("testnet");
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to prevent two different networks (e.g., mainnet and testnet) from being mixed up, we need to add a separate network-level (or app-level?) field to indicate the network identifier to connect to. However, as it would be quite difficult to add a new property/parameter to existing data types and functions taking APV, it might be easier to add the new component to
AppProtocolVersion
.This new component should be prioritized over the version number when two APVs are compared, so that a greater version number with a different network ID does not trigger the update event.
Beta Was this translation helpful? Give feedback.
All reactions