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
go/worker/compute: Improve proposed transaction handling #4640
Conversation
510c9ad
to
3669db3
Compare
3669db3
to
6670997
Compare
Codecov Report
@@ Coverage Diff @@
## master #4640 +/- ##
==========================================
+ Coverage 67.05% 67.10% +0.05%
==========================================
Files 431 431
Lines 48818 48870 +52
==========================================
+ Hits 32735 32796 +61
+ Misses 12050 12049 -1
+ Partials 4033 4025 -8
Continue to review full report at Codecov.
|
go/runtime/txpool/txpool.go
Outdated
@@ -303,9 +359,10 @@ func (t *txPool) GetPrioritizedBatch(offset *hash.Hash, limit uint32) []*transac | |||
|
|||
func (t *txPool) GetKnownBatch(batch []hash.Hash) ([]*transaction.CheckedTransaction, map[hash.Hash]int) { | |||
t.schedulerLock.Lock() | |||
defer t.schedulerLock.Unlock() | |||
schedulerQueue := t.schedulerQueue |
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 is spooky, I take it this is to avoid adding GetKnownBatchLocked
?
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.
Fixed.
6670997
to
ac161d9
Compare
ac161d9
to
bfd33c3
Compare
No description provided.