mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
commit
bce94dfa66
2 changed files with 9 additions and 3 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
- master
|
- master
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'scripts/**'
|
- 'scripts/*.sh'
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
|
@ -118,9 +118,15 @@ func cliMain(c *cli.Context) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Printf("state differs at %d, block %s\n", h, blk.Hash().StringLE())
|
fmt.Printf("state differs at %d, block %s\n", h, blk.Hash().StringLE())
|
||||||
dumpApplogDiff(true, blk.Hash(), a, b, ca, cb)
|
err = dumpApplogDiff(true, blk.Hash(), a, b, ca, cb)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to dump block application log: %w", err)
|
||||||
|
}
|
||||||
for _, t := range blk.Transactions {
|
for _, t := range blk.Transactions {
|
||||||
dumpApplogDiff(false, t.Hash(), a, b, ca, cb)
|
err = dumpApplogDiff(false, t.Hash(), a, b, ca, cb)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to dump application log for tx %s: %w", t.Hash().StringLE(), err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return errors.New("different state found")
|
return errors.New("different state found")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue