neo
neo copied to clipboard
Hard Code the MainNet and TestNet
Summary or problem description Currently we consider all neo chains as the same, with the same code compiled, you can run it with exactly same behavior on every chain. This is good for the contract consistancy and security, but it makes it hard for developers to debug their contract. Thus I propose to hardcode the Mainnet and TestNet(optional) to the core, such that we can know if the contract is running on the mainnet or not, and provide contract features that only work on non-mainnet.
Do you have any solution you want to propose? Consider the NetworkId as constant, and all us to directly us it in the core and compiler.
Where in the software does this update applies to?
- Compiler
- CLI
- Ledger
- VM