Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Refactor miner tests and how bundles are ordered to allow easier extensibility - #32

Merged
Ruteri merged 2 commits into
mainfrom
pr-27-rebase
Dec 28, 2022
Merged

Refactor miner tests and how bundles are ordered to allow easier extensibility#32
Ruteri merged 2 commits into
mainfrom
pr-27-rebase

Conversation

@Ruteri

Copy link
Copy Markdown
Collaborator

📝 Summary

Moves the BuilderPayloadAttributes structure to common library
Refactors miner test setup
Refactors builder setup and how env header is prepared
New channel unit testing utility
Adds two new kinds of algo tests with proper contract calls in preparation of new kinds of testing we want to do in the near future
Adds simulation backend for use in miner algo unit tests

📚 References

Rebased #27


@RuteriRuteri mentioned this pull request Dec 23, 2022
1 task
@Ruteri

Copy link
Copy Markdown
CollaboratorAuthor

Cc @lmittmann

@Ruteri
Ruteriforce-pushed the pr-27-rebase branch 2 times, most recently from 1dfc9f6 to d7cecadCompareDecember 23, 2022 15:45
Comment threadbuilder/eth_service.go Outdated
Comment threadminer/algo_common.go Outdated
Comment threadbuilder/eth_service.go
func (s TxByNonce) Less(i, j int) bool { return s[i].Nonce() < s[j].Nonce() }
func (s TxByNonce) Swap(i, j int) { s[i], s[j] = s[j], s[i] }

type _Order interface {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why aren't bundles and related types in a separate file like builder.go?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

This particular type is used internally by TxWithMinerFee so this is I think the more fitting place

@Ruteri
Ruteri merged commit dccbf1c into mainDec 28, 2022
@Ruteri
Ruteri deleted the pr-27-rebase branch December 28, 2022 14:12
avalonche pushed a commit that referenced this pull request Feb 7, 2023
avalonche pushed a commit that referenced this pull request Mar 9, 2023
avalonche pushed a commit that referenced this pull request Mar 15, 2023
avalonche pushed a commit that referenced this pull request Mar 17, 2023
avalonche pushed a commit that referenced this pull request Mar 22, 2023
avalonche pushed a commit that referenced this pull request Jul 6, 2023
Sign up for freeto 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.

4 participants

@Ruteri@dvush@avalonche@lmittmann