-
Notifications
You must be signed in to change notification settings - Fork 559
Implement EIP-7805 (FOCIL) #8003
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
base: master
Are you sure you want to change the base?
Conversation
TrieStore trieStore = TestTrieStoreFactory.Build(stateDb, LimboLogs.Instance); | ||
_stateProvider = new WorldState(trieStore, new MemDb(), LimboLogs.Instance); |
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.
Not sure if needs update after: #8724
} | ||
|
||
block.InclusionListTransactions = suggestedBlock.InclusionListTransactions; | ||
return _inclusionListValidator.ValidateInclusionList(block, _blockTransactionsExecutor.IsTransactionInBlock); |
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.
I think we don't need IsTransactionInBlock
in executor and can simply check against block.Transactions?
} | ||
} | ||
|
||
public void RecoverData(Transaction[] txs, IReleaseSpec releaseSpec, bool checkFirst) |
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.
why do we need different checkFirst
mechanic?
/// <c>true</c> if the block's inclusion list is satisfied according to EIP-7805; | ||
/// otherwise, <c>false</c>. | ||
/// </returns> | ||
bool ValidateInclusionList(Block block, Func<Transaction, bool> isTransactionInBlock); |
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.
Why do you need to pass isTransactionInBlock
? You should be able to check against block.Transactions
public void ForceRebuildPayload(string payloadId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public BlockHeader? GetPayloadHeader(string payloadId) | ||
{ | ||
throw new NotImplementedException(); | ||
} |
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.
maybe interface segregation?
Changes
engine_getInclusionList
PayloadAttributes
andnewPayload
parametersTypes of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Documentation
Requires documentation update
Requires explanation in Release Notes