good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
140d8839
Commit
140d8839
authored
Jun 3, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
core: test updates
parent
d09a6e54
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/transaction_pool.go
+0
-1
0 additions, 1 deletion
core/transaction_pool.go
core/transaction_pool_test.go
+1
-1
1 addition, 1 deletion
core/transaction_pool_test.go
with
1 addition
and
2 deletions
core/transaction_pool.go
+
0
−
1
View file @
140d8839
...
...
@@ -284,7 +284,6 @@ func (pool *TxPool) checkQueue() {
addq
:=
addq
[
:
0
]
for
hash
,
tx
:=
range
txs
{
if
tx
.
AccountNonce
<
curnonce
{
fmt
.
Println
(
"delete the tx"
,
tx
.
AccountNonce
,
curnonce
)
// Drop queued transactions whose nonce is lower than
// the account nonce because they have been processed.
delete
(
txs
,
hash
)
...
...
This diff is collapsed.
Click to expand it.
core/transaction_pool_test.go
+
1
−
1
View file @
140d8839
...
...
@@ -119,7 +119,7 @@ func TestRemoveTx(t *testing.T) {
from
,
_
:=
tx
.
From
()
pool
.
state
.
AddBalance
(
from
,
big
.
NewInt
(
1
))
pool
.
queueTx
(
tx
.
Hash
(),
tx
)
pool
.
addTx
(
tx
.
Hash
(),
tx
)
pool
.
addTx
(
tx
.
Hash
(),
from
,
tx
)
if
len
(
pool
.
queue
)
!=
1
{
t
.
Error
(
"expected queue to be 1, got"
,
len
(
pool
.
queue
))
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment