Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c6be24c7
Unverified
Commit
c6be24c7
authored
Feb 24, 2020
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/fetcher: remove randomness from test data
parent
6ffee2af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tx_fetcher_test.go
eth/fetcher/tx_fetcher_test.go
+4
-4
No files found.
eth/fetcher/tx_fetcher_test.go
View file @
c6be24c7
...
@@ -32,10 +32,10 @@ import (
...
@@ -32,10 +32,10 @@ import (
var
(
var
(
// testTxs is a set of transactions to use during testing that have meaninful hashes.
// testTxs is a set of transactions to use during testing that have meaninful hashes.
testTxs
=
[]
*
types
.
Transaction
{
testTxs
=
[]
*
types
.
Transaction
{
types
.
NewTransaction
(
rand
.
Uint64
(),
common
.
Address
{
byte
(
rand
.
Intn
(
256
))
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
5577006791947779410
,
common
.
Address
{
0x0f
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
rand
.
Uint64
(),
common
.
Address
{
byte
(
rand
.
Intn
(
256
))
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
15352856648520921629
,
common
.
Address
{
0xbb
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
rand
.
Uint64
(),
common
.
Address
{
byte
(
rand
.
Intn
(
256
))
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
3916589616287113937
,
common
.
Address
{
0x86
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
rand
.
Uint64
(),
common
.
Address
{
byte
(
rand
.
Intn
(
256
))
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
types
.
NewTransaction
(
9828766684487745566
,
common
.
Address
{
0xac
},
new
(
big
.
Int
),
0
,
new
(
big
.
Int
),
nil
),
}
}
// testTxsHashes is the hashes of the test transactions above
// testTxsHashes is the hashes of the test transactions above
testTxsHashes
=
[]
common
.
Hash
{
testTxs
[
0
]
.
Hash
(),
testTxs
[
1
]
.
Hash
(),
testTxs
[
2
]
.
Hash
(),
testTxs
[
3
]
.
Hash
()}
testTxsHashes
=
[]
common
.
Hash
{
testTxs
[
0
]
.
Hash
(),
testTxs
[
1
]
.
Hash
(),
testTxs
[
2
]
.
Hash
(),
testTxs
[
3
]
.
Hash
()}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment