Skip to content

Commit

Permalink
Reset global variables for gxhash (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulbqb authored Jan 22, 2025
1 parent 7baf716 commit af57de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ok github.com/kaiachain/kaia/tests 42.923s
2 changes: 2 additions & 0 deletions tests/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/kaiachain/kaia/blockchain"
"github.com/kaiachain/kaia/blockchain/types"
"github.com/kaiachain/kaia/common"
"github.com/kaiachain/kaia/consensus/gxhash"
"github.com/stretchr/testify/suite"
)

Expand Down Expand Up @@ -75,6 +76,7 @@ func (suite *ExecutionSpecBlockTestSuite) TearDownSuite() {
blockchain.GasLimitInExecutionSpecTest = 0
blockchain.CreateContractWithCodeFormatInExecutionSpecTest = false
types.IsPragueInExecutionSpecTest = false
gxhash.CustomInitialize = nil
}

func (suite *ExecutionSpecBlockTestSuite) TestExecutionSpecBlock() {
Expand Down

0 comments on commit af57de8

Please sign in to comment.