Separate branch and block processor#8980
Conversation
| WaitForCacheClear(); | ||
| IReleaseSpec spec = specProvider.GetSpec(suggestedBlock.Header); | ||
| (CancellationTokenSource? prewarmCancellation, Task? preWarmTask) | ||
| = PreWarmTransactions(suggestedBlock, baseBlock, spec); |
There was a problem hiding this comment.
Pre-warming is per-block it is weird it ended up in Branch part
There was a problem hiding this comment.
Yea, its probably better made as wrapper to IBlockProcessor
There was a problem hiding this comment.
Should we do it in this PR? Or have next PR ready before merging this one? Without it, it is hard for me to see it as an upgrade.
There was a problem hiding this comment.
Probably next, next PR. Although I won't do anything with prewarmer for now.
6214f02 to
a3828ba
Compare
13eab8b to
603fb6d
Compare
LukaszRozmej
left a comment
There was a problem hiding this comment.
waiting for that next PR
a3828ba to
50eb2bc
Compare
603fb6d to
e8b5c4e
Compare
50eb2bc to
823b270
Compare
e8b5c4e to
c2e847b
Compare
| } | ||
| } | ||
|
|
||
| // TODO: move to block processing pipeline |
There was a problem hiding this comment.
Is this TODO to move it back 🤔
There was a problem hiding this comment.
Yea, I just copy it. Not sure what does it suppose to be.
823b270 to
d4b992c
Compare
|
Conflicts |
c2e847b to
9295fce
Compare
emlautarom1
left a comment
There was a problem hiding this comment.
LGTM. There are probably some unused imports that we could remove here and there though.
| if (_logger.IsTrace) _logger.Trace($"Restored the branch checkpoint - {branchingPointHeader?.ToString(BlockHeader.Format.Short)} | {_stateProvider.StateRoot}"); | ||
| } | ||
|
|
||
| // TODO: block processor pipeline |
Co-authored-by: Lautaro Emanuel <31224949+emlautarom1@users.noreply.github.com>
…k-processor' into feature/separate-branch-and-block-processor
IBlockProcessorintoIBranchProcessor.BranchProcessor) is outside, which resolve some double world scoping.Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing