Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revived submitBatch #42

Merged
merged 3 commits into from
Nov 2, 2020
Merged

Revived submitBatch #42

merged 3 commits into from
Nov 2, 2020

Conversation

vaibhavchellani
Copy link
Contributor

Fixes #34

@vaibhavchellani vaibhavchellani changed the title Revived submitBatch WIP: Revived submitBatch Oct 29, 2020
@vaibhavchellani vaibhavchellani changed the title WIP: Revived submitBatch Revived submitBatch Oct 30, 2020
@vaibhavchellani vaibhavchellani changed the base branch from master to BLS-integration October 30, 2020 10:25
@vaibhavchellani vaibhavchellani changed the base branch from BLS-integration to master October 30, 2020 10:25
Copy link
Collaborator

@ChihChengLiang ChihChengLiang left a comment

Choose a reason for hiding this comment

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

Looks good to me. Ask some questions and suggest issues to create.

updatedRoots = append(updatedRoots, commitment.UpdatedRoot)
totalTxs += len(commitment.Txs)

// TODO cleanup
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to create an issue that adds an AggregatedSignature wrapper with a method like ToSol()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#56

rollupAddress := ethCmn.HexToAddress(config.GlobalCfg.RollupAddress)
stakeAmount := big.NewInt(0)

// TODO fix
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the thing we want to fix here? Is it adding a feeReceiver to the config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now I have added 0 as fee receiver to fix build but we need to replace that with the correct one.

Lets talk here: #47

return nil
}

func (b *Bazooka) GenerateAuthObj(client *ethclient.Client, callMsg ethereum.CallMsg) (auth *bind.TransactOpts, err error) {
func (b *Bazooka) generateAuthObj(client *ethclient.Client, callMsg ethereum.CallMsg) (auth *bind.TransactOpts, err error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We change the MixCaps to camelCase here, is the intention that we don't want to export generateAuthObj in the package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bingo!

b.log.Info("Batch prepared", "totalTransactions", totalTxs)

rollupAddress := ethCmn.HexToAddress(config.GlobalCfg.RollupAddress)
stakeAmount := big.NewInt(0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should create an issue to make stakeAmount configurable too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bring back submit batch contract interactor
2 participants