Skip to content

Commit

Permalink
add contract_destroy height
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas7788 committed Nov 18, 2019
1 parent affb123 commit 6e7f75a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func GetOpcodeUpdateCheckHeight(id uint32) uint32 {
}

var CONTRACT_DESTROY_ENABLE_HEIGHT = map[uint32]uint32{
NETWORK_ID_MAIN_NET: constants.OPCODE_HEIGHT_UPDATE_FIRST_MAINNET, //Network main
NETWORK_ID_POLARIS_NET: constants.OPCODE_HEIGHT_UPDATE_FIRST_POLARIS, //Network polaris
NETWORK_ID_SOLO_NET: 0, //Network solo
NETWORK_ID_MAIN_NET: constants.CONTRACT_DESTROY_MAINNET, //Network main
NETWORK_ID_POLARIS_NET: constants.CONTRACT_DESTROY_POLARIS, //Network polaris
NETWORK_ID_SOLO_NET: 0, //Network solo
}

func GetContractDestroyCheckHeight(id uint32) uint32 {
Expand Down
5 changes: 5 additions & 0 deletions common/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ const STATE_HASH_HEIGHT_POLARIS = 850000
// neovm opcode update check height
const OPCODE_HEIGHT_UPDATE_FIRST_MAINNET = 6300000
const OPCODE_HEIGHT_UPDATE_FIRST_POLARIS = 2100000

const (
CONTRACT_DESTROY_MAINNET = 6300000
CONTRACT_DESTROY_POLARIS = 6300000
)

0 comments on commit 6e7f75a

Please sign in to comment.