Skip to content

Commit 4a671ee

Browse files
committed
morph: add some GAS to notary txs
To prevent error while transferring assets: "at instruction 1689 (SYSCALL): System.Runtime.Log failed: insufficient amount of gas", add 10% additional GAS. Closes #3082. Signed-off-by: Andrey Butusov <[email protected]>
1 parent 3e4cd15 commit 4a671ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Changelog for NeoFS Node
3838
- Calculation of VUB for zero hash (#3134)
3939
- More efficient block header subscription is used now instead of block-based one (#3163)
4040
- `ObjectService.GetRange(Hash)` ops now handle zero ranges as full payload (#3071)
41+
- Add some GAS to system fee of notary transactions (#3176)
4142

4243
### Removed
4344
- Drop creating new eacl tables with public keys (#3096)

pkg/morph/client/notary.go

+4
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ func (c *Client) notaryInvoke(committee, invokedByAlpha bool, contract util.Uint
487487
t.ValidUntilBlock = until
488488
t.Nonce = nonce
489489

490+
// Add 10% GAS to prevent this errors:
491+
// "at instruction 1689 (SYSCALL): System.Runtime.Log failed: insufficient amount of gas"
492+
t.SystemFee += t.SystemFee / 10
493+
490494
return nil
491495
}, args...))
492496

0 commit comments

Comments
 (0)