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
93e693be
Commit
93e693be
authored
Nov 18, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests for 'types'
parent
675ba4d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
helper_test.go
chain/helper_test.go
+2
-1
main.go
cmd/ethereum/main.go
+2
-3
trie_test.go
ptrie/trie_test.go
+1
-1
trie_test.go
trie/trie_test.go
+2
-0
No files found.
chain/helper_test.go
View file @
93e693be
...
...
@@ -4,6 +4,7 @@ import (
"container/list"
"fmt"
"github.com/ethereum/go-ethereum/chain/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/ethutil"
...
...
@@ -19,7 +20,7 @@ type TestManager struct {
db
ethutil
.
Database
txPool
*
TxPool
blockChain
*
ChainManager
Blocks
[]
*
Block
Blocks
[]
*
types
.
Block
}
func
(
s
*
TestManager
)
IsListening
()
bool
{
...
...
cmd/ethereum/main.go
View file @
93e693be
...
...
@@ -21,8 +21,7 @@ import (
"fmt"
"os"
"runtime"
"github.com/ethereum/go-ethereum/chain"
"github.com/ethereum/go-ethereum/chain/types"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
...
...
@@ -74,7 +73,7 @@ func main() {
ethereum
:=
utils
.
NewEthereum
(
db
,
clientIdentity
,
keyManager
,
UseUPnP
,
OutboundPort
,
MaxPeer
)
if
Dump
{
var
block
*
chain
.
Block
var
block
*
types
.
Block
if
len
(
DumpHash
)
==
0
&&
DumpNumber
==
-
1
{
block
=
ethereum
.
ChainManager
()
.
CurrentBlock
...
...
ptrie/trie_test.go
View file @
93e693be
...
...
@@ -132,7 +132,7 @@ func BenchmarkUpdate(b *testing.B) {
b
.
ResetTimer
()
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
trie
.
UpdateString
(
fmt
.
Sprintf
(
"aaaaaaaaa%d"
,
base
,
i
),
"value"
)
trie
.
UpdateString
(
fmt
.
Sprintf
(
"aaaaaaaaa%d"
,
i
),
"value"
)
}
trie
.
Hash
()
}
...
...
trie/trie_test.go
View file @
93e693be
package
trie
import
(
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"testing"
"time"
checker
"gopkg.in/check.v1"
...
...
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