scripts: add compare-states, related to #2337
Allows to quickly find the bad block and compare application logs. Theoretically could also walk through the MPT to find the difference there, but it's not needed now.
This commit is contained in:
parent
b011af4723
commit
d1a9aa1d0d
3 changed files with 148 additions and 0 deletions
14
scripts/compare-dumps/compare-dumps_test.go
Normal file
14
scripts/compare-dumps/compare-dumps_test.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/config"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/native"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestCompatibility(t *testing.T) {
|
||||
cs := native.NewContracts(config.ProtocolConfiguration{})
|
||||
require.Equal(t, cs.Ledger.ID, int32(ledgerContractID))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue