mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-18 03:57:34 +00:00
core: extend NewBlockchain coverage a bit
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
c7f5f173ae
commit
c53b0645bb
1 changed files with 5 additions and 0 deletions
|
@ -159,6 +159,11 @@ func TestNewBlockchainIncosistencies(t *testing.T) {
|
||||||
c.ApplicationConfiguration.RemoveUntraceableHeaders = true
|
c.ApplicationConfiguration.RemoveUntraceableHeaders = true
|
||||||
}, storage.NewMemoryStore(), "RemoveUntraceableHeaders is enabled, but RemoveUntraceableBlocks is not")
|
}, storage.NewMemoryStore(), "RemoveUntraceableHeaders is enabled, but RemoveUntraceableBlocks is not")
|
||||||
})
|
})
|
||||||
|
t.Run("state exchange without state root", func(t *testing.T) {
|
||||||
|
checkNewBlockchainErr(t, func(c *config.Config) {
|
||||||
|
c.ProtocolConfiguration.P2PStateExchangeExtensions = true
|
||||||
|
}, storage.NewMemoryStore(), "P2PStatesExchangeExtensions are enabled, but StateRootInHeader is off")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBlockchain_InitWithIncompleteStateJump(t *testing.T) {
|
func TestBlockchain_InitWithIncompleteStateJump(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue