From be353ad69fbe00d73e67065aeb3a1c73ac691447 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 24 Sep 2020 10:31:36 +0300 Subject: [PATCH] [#48] Use more extra fee at container registration Large inner ring requires more gas to make container registration. Container contract makes balance transfers for each inner ring node and it require extra gas to execute. This estimation should be enough for seven inner ring nodes. Later there should be heuristic evaluations for this: #47 Signed-off-by: Alex Vanin --- pkg/innerring/invoke/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/innerring/invoke/container.go b/pkg/innerring/invoke/container.go index 874fffd50..bc1961f6b 100644 --- a/pkg/innerring/invoke/container.go +++ b/pkg/innerring/invoke/container.go @@ -32,7 +32,7 @@ func RegisterContainer(cli *client.Client, con util.Uint160, p *ContainerParams) return client.ErrNilClient } - return cli.Invoke(con, extraFee, putContainerMethod, + return cli.Invoke(con, 2*extraFee, putContainerMethod, p.Container, p.Signature, p.Key.Bytes(),