Skip to content

Commit

Permalink
fix(state): set hard-fork height for the mainnet (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f authored Oct 7, 2024
1 parent beb51df commit 2c8bf99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ func (st *state) checkEd25519Fork(trx *tx.Tx) error {
// TODO: remove me after enabling Ed255519
if trx.Payload().Signer().Type() == crypto.AddressTypeEd25519Account {
if st.genDoc.ChainType().IsMainnet() {
return fmt.Errorf("ed255519 not supported yet")
}

if st.genDoc.ChainType().IsTestnet() {
if st.lastInfo.BlockHeight() < 1_320_000 {
if st.lastInfo.BlockHeight() < 2_320_000 {
return fmt.Errorf("ed255519 not supported yet")
}
}
Expand Down

0 comments on commit 2c8bf99

Please sign in to comment.