Update gas numbers

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-06 23:27:09 +02:00
parent f8a6e4dce7
commit 5f826a2147
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -84,46 +84,45 @@ 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: 38863,
onChainMessageStorageBase: 36, onChainMessageStorageBase: 36,
onChainMessageStoragePerByte: 1, onChainMessageStoragePerByte: 1,
onChainReturnValuePerByte: 1, onChainReturnValuePerByte: 1,
sendBase: 97236, sendBase: 29233,
sendTransferFunds: 96812, sendTransferFunds: 27500,
sendTransferOnlyPremium: 347806, sendTransferOnlyPremium: 159672,
sendInvokeMethod: -3110, sendInvokeMethod: -5377,
ipldGetBase: 417230, ipldGetBase: 75242,
ipldPutBase: 396100, ipldPutBase: 84070,
ipldPutPerByte: 1, ipldPutPerByte: 1,
createActorCompute: 750011, createActorCompute: 1108454,
createActorStorage: 36 + 40, createActorStorage: 36 + 40,
deleteActor: -(36 + 40), // -createActorStorage deleteActor: -(36 + 40), // -createActorStorage
verifySignature: map[crypto.SigType]int64{ verifySignature: map[crypto.SigType]int64{
crypto.SigTypeBLS: 219946580, crypto.SigTypeBLS: 16598605,
crypto.SigTypeSecp256k1: 6726720, crypto.SigTypeSecp256k1: 1637292,
}, },
hashingBase: 110685, hashingBase: 31355,
computeUnsealedSectorCidBase: 431890, computeUnsealedSectorCidBase: 98647,
verifySealBase: 2000, // TODO gas , it VerifySeal syscall is not used verifySealBase: 2000, // TODO gas , it VerifySeal syscall is not used
verifyPostLookup: map[abi.RegisteredPoStProof]scalingCost{ verifyPostLookup: map[abi.RegisteredPoStProof]scalingCost{
abi.RegisteredPoStProof_StackedDrgWindow512MiBV1: { abi.RegisteredPoStProof_StackedDrgWindow512MiBV1: {
flat: 106102820, flat: 123861062,
scale: 10238878, scale: 9226981,
}, },
abi.RegisteredPoStProof_StackedDrgWindow32GiBV1: { abi.RegisteredPoStProof_StackedDrgWindow32GiBV1: {
flat: 1165718059, flat: 748593537,
scale: 166657, scale: 85639,
}, },
abi.RegisteredPoStProof_StackedDrgWindow64GiBV1: { abi.RegisteredPoStProof_StackedDrgWindow64GiBV1: {
// TODO, for now the same as 32GiB flat: 748593537,
flat: 1165718059, scale: 85639,
scale: 166657,
}, },
}, },
verifyConsensusFault: 495422, verifyConsensusFault: 495422,