forked from TrueCloudLab/neoneo-go
core: add nolint comment for deprecated error format style
Should be a part of 67d4d891ef
.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
dcea3f6107
commit
9c0a45c65e
1 changed files with 1 additions and 1 deletions
|
@ -2569,7 +2569,7 @@ func (bc *Blockchain) verifyTxAttributes(d *dao.Simple, tx *transaction.Transact
|
||||||
if isPartialTx {
|
if isPartialTx {
|
||||||
maxNVBDelta, err := bc.GetMaxNotValidBeforeDelta()
|
maxNVBDelta, err := bc.GetMaxNotValidBeforeDelta()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%w: failed to retrieve MaxNotValidBeforeDelta value from native Notary contract: %v", ErrInvalidAttribute, err)
|
return fmt.Errorf("%w: failed to retrieve MaxNotValidBeforeDelta value from native Notary contract: %v", ErrInvalidAttribute, err) //nolint:errorlint // errorlint: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
|
||||||
}
|
}
|
||||||
if curHeight+maxNVBDelta < nvb {
|
if curHeight+maxNVBDelta < nvb {
|
||||||
return fmt.Errorf("%w: NotValidBefore (%d) bigger than MaxNVBDelta (%d) allows at height %d", ErrInvalidAttribute, nvb, maxNVBDelta, curHeight)
|
return fmt.Errorf("%w: NotValidBefore (%d) bigger than MaxNVBDelta (%d) allows at height %d", ErrInvalidAttribute, nvb, maxNVBDelta, curHeight)
|
||||||
|
|
Loading…
Reference in a new issue