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
eb452115
Commit
eb452115
authored
10 years ago
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rpcfrontier' of github.com:ethereum/go-ethereum into rpcfrontier
parents
c3a3d387
b4a51de6
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4075 additions
and
1277 deletions
+4075
-1277
chain_manager.go
core/chain_manager.go
+0
-2
api.go
rpc/api.go
+1
-1
bcInvalidRLPTest.json
tests/files/BlockTests/bcInvalidRLPTest.json
+3995
-1267
ethash_tests.json
tests/files/PoWTests/ethash_tests.json
+7
-7
st201503191646GO.json
tests/files/StateTests/RandomTests/st201503191646GO.json
+72
-0
No files found.
core/chain_manager.go
View file @
eb452115
...
...
@@ -444,14 +444,12 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
self
.
setTotalDifficulty
(
td
)
self
.
insert
(
block
)
/* XXX crashes
jsonlogger
.
LogJson
(
&
logger
.
EthChainNewHead
{
BlockHash
:
common
.
Bytes2Hex
(
block
.
Hash
()),
BlockNumber
:
block
.
Number
(),
ChainHeadHash
:
common
.
Bytes2Hex
(
cblock
.
Hash
()),
BlockPrevHash
:
common
.
Bytes2Hex
(
block
.
ParentHash
()),
})
*/
self
.
setTransState
(
state
.
New
(
block
.
Root
(),
self
.
stateDb
))
self
.
setTxState
(
state
.
New
(
block
.
Root
(),
self
.
stateDb
))
...
...
This diff is collapsed.
Click to expand it.
rpc/api.go
View file @
eb452115
...
...
@@ -486,7 +486,7 @@ func (p *EthereumApi) GetBlockUncleCountByNumber(blocknum int64) (int64, error)
func
(
p
*
EthereumApi
)
GetRequestReply
(
req
*
RpcRequest
,
reply
*
interface
{})
error
{
// Spec at https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC
rpclogger
.
Info
f
(
"%s %s"
,
req
.
Method
,
req
.
Params
)
rpclogger
.
Debug
f
(
"%s %s"
,
req
.
Method
,
req
.
Params
)
switch
req
.
Method
{
case
"web3_sha3"
:
args
:=
new
(
Sha3Args
)
...
...
This diff is collapsed.
Click to expand it.
tests/files/BlockTests/bcInvalidRLPTest.json
View file @
eb452115
This diff is collapsed.
Click to expand it.
tests/files/PoWTests/ethash_tests.json
View file @
eb452115
{
"first"
:
{
"nonce"
:
"
000000000000002a
"
,
"mixhash"
:
"
86d46c9a313b096d66609ef84a334d6c3376d3a5e13b18aa5c666094ae04a1eb
"
,
"header"
:
"f90
213a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a09178d0f23c965d81f0834a4c72c6253ce6830f4022b1359aaebfc1ecba442d4ea056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082080080830f4240808080a00000000000000000000000000000000000000000000000000000000000000000a086d46c9a313b096d66609ef84a334d6c3376d3a5e13b18aa5c666094ae04a1eb88000000000000002a
"
,
"nonce"
:
"
4242424242424242
"
,
"mixhash"
:
"
58f759ede17a706c93f13030328bcea40c1d1341fb26f2facd21ceb0dae57017
"
,
"header"
:
"f90
1f3a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a09178d0f23c965d81f0834a4c72c6253ce6830f4022b1359aaebfc1ecba442d4ea056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080830f4240808080a058f759ede17a706c93f13030328bcea40c1d1341fb26f2facd21ceb0dae57017884242424242424242
"
,
"seed"
:
"0000000000000000000000000000000000000000000000000000000000000000"
,
"result"
:
"
a91eb868c6262d5456a696bd59cf67191ca7578c04dc72f40c5ece41fb1c3f9f
"
,
"cache_size"
:
1
048384
,
"result"
:
"
dd47fd2d98db51078356852d7c4014e6a5d6c387c35f40e2875b74a256ed7906
"
,
"cache_size"
:
1
6776896
,
"full_size"
:
1073739904
,
"header_hash"
:
"
f71b596d43b462f63552a6d73a525dc777f172de3e9a023c8a85d3271144038b
"
,
"cache_hash"
:
"
86a62f39bc1def6c35b54babdca953425392827c1992538c145bad931c546494
"
"header_hash"
:
"
2a8de2adf89af77358250bf908bf04ba94a6e8c3ba87775564a41d269a05e4ce
"
,
"cache_hash"
:
"
35ded12eecf2ce2e8da2e15c06d463aae9b84cb2530a00b932e4bbc484cde353
"
}
}
This diff is collapsed.
Click to expand it.
tests/files/StateTests/RandomTests/st201503191646GO.json
0 → 100644
View file @
eb452115
{
"randomStatetest"
:
{
"env"
:
{
"currentCoinbase"
:
"945304eb96065b2a98b57a48a06ae28d285a71b5"
,
"currentDifficulty"
:
"5623894562375"
,
"currentGasLimit"
:
"115792089237316195423570985008687907853269984665640564039457584007913129639935"
,
"currentNumber"
:
"0"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"372067975"
,
"code"
:
"0x7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000100000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000c3507f000000000000000000000000ffffffffffffffffffffffffffffffffffffffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe457fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b50753933760005155"
,
"nonce"
:
"0"
,
"storage"
:
{
"0x"
:
"0x010000000000000000000000000000000000000000"
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"63798"
,
"code"
:
"0x6000355415600957005b60203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"999999999627868273"
,
"code"
:
"0x"
,
"nonce"
:
"1"
,
"storage"
:
{
}
}
},
"postStateRoot"
:
"3b744e6037075a1c3b6b18ccdf377d3815369ad8b476da92bc6db4b37ae4aa29"
,
"pre"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"0"
,
"code"
:
"0x7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000100000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000c3507f000000000000000000000000ffffffffffffffffffffffffffffffffffffffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe457fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b50753933760005155"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"46"
,
"code"
:
"0x6000355415600957005b60203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"transaction"
:
{
"data"
:
"0x7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000100000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000c3507f000000000000000000000000ffffffffffffffffffffffffffffffffffffffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe457fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000945304eb96065b2a98b57a48a06ae28d285a71b507539337"
,
"gasLimit"
:
"0x500ddd76"
,
"gasPrice"
:
"1"
,
"nonce"
:
"0"
,
"secretKey"
:
"45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
,
"to"
:
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
,
"value"
:
"372067975"
}
}
}
This diff is collapsed.
Click to expand it.
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