Update storage gas prices

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-23 22:39:11 +02:00
parent 774c6901a8
commit 4abff16783
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -13,7 +13,7 @@ import (
) )
const ( const (
GasStorageMulti = 1 GasStorageMulti = 1000
GasComputeMulti = 1 GasComputeMulti = 1
) )
@ -85,10 +85,10 @@ type Pricelist interface {
var prices = map[abi.ChainEpoch]Pricelist{ var prices = map[abi.ChainEpoch]Pricelist{
abi.ChainEpoch(0): &pricelistV0{ abi.ChainEpoch(0): &pricelistV0{
onChainMessageComputeBase: 137137, onChainMessageComputeBase: 137137,
onChainMessageStorageBase: 0, // TODO gas onChainMessageStorageBase: 36,
onChainMessageStoragePerByte: 2, // TODO gas onChainMessageStoragePerByte: 1,
onChainReturnValuePerByte: 8, // TODO gas onChainReturnValuePerByte: 1,
sendBase: 97236, sendBase: 97236,
sendTransferFunds: 96812, sendTransferFunds: 96812,
@ -97,11 +97,11 @@ var prices = map[abi.ChainEpoch]Pricelist{
ipldGetBase: 417230, ipldGetBase: 417230,
ipldPutBase: 396100, ipldPutBase: 396100,
ipldPutPerByte: 2, // TODO gas ipldPutPerByte: 1,
createActorCompute: 750011, createActorCompute: 750011,
createActorStorage: 500, // TODO gas createActorStorage: 36 + 40,
deleteActor: -500, // -createActorStorage deleteActor: -(36 + 40), // -createActorStorage
verifySignature: map[crypto.SigType]int64{ verifySignature: map[crypto.SigType]int64{
crypto.SigTypeBLS: 219946580, crypto.SigTypeBLS: 219946580,