-
Notifications
You must be signed in to change notification settings - Fork 3
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
Match orders in same block as they are placed #185
Conversation
@atvanguard @debaghtk please help with naming on new structs, files and functions |
.avalanche-cli.json
Outdated
} | ||
} | ||
}, | ||
"singlenodeenabled": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] needs hyphenation like other values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is interpreter by avalanche cli, we can't control it
miner/orderbook_checker.go
Outdated
"github.com/ethereum/go-ethereum/common" | ||
) | ||
|
||
type OrderBookChecker interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - OrderbookChecker
How this works
In commitNewWork, when committing each transactions, we check whether the order(s) in the transaction match with any existing orders, and matching transactions are included in the same block.
How this was tested
On local