Merge pull request #3436 from nspcc-dev/fix-lint

scripts: fix linting
This commit is contained in:
Roman Khimov 2024-05-14 16:16:46 +03:00 committed by GitHub
commit bce94dfa66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -8,7 +8,7 @@ on:
- master
types: [opened, synchronize]
paths-ignore:
- 'scripts/**'
- 'scripts/*.sh'
- '**/*.md'
workflow_dispatch:

View file

@ -118,9 +118,15 @@ func cliMain(c *cli.Context) error {
return err
}
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 {
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")
}