-
Notifications
You must be signed in to change notification settings - Fork 682
Conversation
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'd prefer not to see test refactor changes in these commits (I know we've done these drive-by refactorings in the past) since chris is currently refactoring everything to async/await right now. There may end up being merge conflicts with #313.
Agreed, just for background this test was updated before any refactoring started. I did make sure to notify and remind chris of the changes to hopefully avoid any conflicts. |
Neither the
transactionsTrie
nor thereceiptsTrie
were being calculated and the resultingtransactionsRoot
andreceiptsRoot
were always identical (EMPTY_TRIE_ROOT) when there were 1 or more transactions in a block.This PR suggests a fix by:
Creating 2 empty Tries and populating them with tx index (within the block) as the keys and transactions/receipts for their respective values. The resulting Trie's roots are then copied to
block.header.transactionsTrie
andblock.header.receiptTrie
respectively.