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:
Roman Khimov 2022-01-25 21:12:07 +03:00
parent b011af4723
commit d1a9aa1d0d
3 changed files with 148 additions and 0 deletions

View 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))
}