Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Allow lotus to decide gas limit and gas price #50

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Conversation

Kubuxu
Copy link
Collaborator

@Kubuxu Kubuxu commented Jul 15, 2020

No description provided.

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
@Kubuxu Kubuxu requested a review from magik6k July 15, 2020 19:19
@Kubuxu Kubuxu changed the title Update gas limits, allows lotus to determine limit and price Allow lotus to decide gas limit and gas price Jul 15, 2020
@@ -319,7 +319,7 @@ func (m *Sealing) handleCommitting(ctx statemachine.Context, sector SectorInfo)
}

// TODO: check seed / ticket are up to date
mcid, err := m.api.SendMsg(ctx.Context(), waddr, m.maddr, builtin.MethodsMiner.ProveCommitSector, collateral, big.NewInt(1), 200000000, enc.Bytes())
mcid, err := m.api.SendMsg(ctx.Context(), waddr, m.maddr, builtin.MethodsMiner.ProveCommitSector, collateral, big.NewInt(0), 200000000, enc.Bytes())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stays 200M as I've set the default to 100M and this needs more.
We can switch it to 0 when lotus has gas estimation.

@magik6k magik6k merged commit b79b3d0 into next Jul 15, 2020
@magik6k magik6k deleted the fix/update-gas branch July 15, 2020 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants