Merge pull request #1575 from filecoin-project/feat/estimate-gas-price-api

add an api for estimating gas prices
This commit is contained in:
Łukasz Magiera
2020-04-24 00:47:27 +02:00
committed by GitHub
4 changed files with 29 additions and 5 deletions
+4
View File
@@ -118,3 +118,7 @@ func (a *MpoolAPI) MpoolGetNonce(ctx context.Context, addr address.Address) (uin
func (a *MpoolAPI) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error) {
return a.Mpool.Updates(ctx)
}
func (a *MpoolAPI) MpoolEstimateGasPrice(ctx context.Context, nblocksincl uint64, sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error) {
return a.Mpool.EstimateGasPrice(ctx, nblocksincl, sender, gaslimit, tsk)
}