-
Notifications
You must be signed in to change notification settings - Fork 15
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
Save BlockTransaction and BlockOperation when sync #893
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.
Dependency changes are unrelated?
23ab440
to
04d32c5
Compare
@Geod24 Oh, I removed this dependency changes in comments :-> |
0390adc
to
8ce8881
Compare
Codecov Report
@@ Coverage Diff @@
## master #893 +/- ##
==========================================
- Coverage 60.38% 60.21% -0.18%
==========================================
Files 153 153
Lines 10724 10746 +22
==========================================
- Hits 6476 6471 -5
- Misses 3512 3532 +20
- Partials 736 743 +7
Continue to review full report at Codecov.
|
Ping~ |
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.
LGTM!
return | ||
} | ||
|
||
func ProcessProposerTransaction(st *storage.LevelDBBackend, blk block.Block, ptx ballot.ProposerTransaction, log logging.Logger) (err error) { |
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.
👍
Github Issue
Background
This PR intent that when syncer finishes a block, the operations and the transactions of this block are saved with finishing the block in sync/watcher node.
Solution
when syncer finishes a block, the operations and the transactions of this block are saved with finishing the block in sync/watcher node.
Possible Drawbacks
Without
SavingBlockOperations
, It makes slower sync/watcher time than withSavingBlockOperations
.