[#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 <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-24 10:31:36 +03:00
parent 6f4b477195
commit be353ad69f

View file

@ -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(),