forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 2
Add external calls within consensus mechanism #88
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
Open
cyl19970726
wants to merge
149
commits into
tm_w3q
Choose a base branch
from
tm_w3q_ethcall
base: tm_w3q
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,128
−105
Open
Changes from 131 commits
Commits
Show all changes
149 commits
Select commit
Hold shift + click to select a range
2d1fd4f
add test
cyl19970726 41b78e0
Merge branch 'tm_w3q' of https://github.com/QuarkChain/go-ethereum in…
cyl19970726 8035296
Merge branch 'tm_w3q' of https://github.com/QuarkChain/go-ethereum in…
cyl19970726 c493347
update RPCMarshalHeader
ping-ke 61ac7a0
add relayer
ping-ke 51c5bc5
fix bug
ping-ke 98dca72
Merge branch 'tm_w3q_relayer' of https://github.com/QuarkChain/go-eth…
cyl19970726 9fa8e54
Merge branch 'tm_w3q_rpc' of https://github.com/QuarkChain/go-ethereu…
cyl19970726 31b2f3e
Merge branch 'tm_w3q' of https://github.com/QuarkChain/go-ethereum in…
cyl19970726 08f78fa
Add externalCallResult property inside transaction
cyl19970726 ee78ffa
add test for externalCallResult in transaction
cyl19970726 1070a67
transaction_test.go : Fix some bugs in the old version of the test
cyl19970726 0b00135
add a precompile contract names crossChainCall
cyl19970726 3afbc06
add externalClient and verify that externalCallResult is after transa…
cyl19970726 77d28bd
fix external call result bug
cyl19970726 204e451
add test for externalcall
cyl19970726 76b2e7f
encode crossChainCall rescult thorugh rlp
cyl19970726 4d1b4d7
update state_test
cyl19970726 1c9a469
add external call config in ChainConfig
cyl19970726 cd3dbcc
Add ExternalCallClient() to consensus.engine interface
cyl19970726 04bd4f1
support external call for normal node
cyl19970726 f73768e
update state_test.go
cyl19970726 183a9a2
add test for external call in evm
cyl19970726 3140cbe
add more test
cyl19970726 d916318
remove unused files
cyl19970726 8a9eb7d
Change the address of a crosss_chain_call precompiled contract from 0…
cyl19970726 a5f698c
check logIdx to avoid exceeding the bounds of the log array
cyl19970726 9195ea1
deal with chainId and return err if tracePtr exceeds the bound
cyl19970726 06e72a8
use abiPack method to encode the result of cross chain call
cyl19970726 17ae548
externalCall.version string=>uint64
cyl19970726 b3db020
add supportChainID check
cyl19970726 f81ba58
Set the environment for executing external calls
cyl19970726 89b8fc4
update external config
cyl19970726 553cd9c
Split error into expect error and unexpect error
cyl19970726 29a9b02
fix external call test
cyl19970726 c923ff9
update external call test
cyl19970726 7b481ce
Add a way to handle unexpected errors
cyl19970726 116b5f8
optimize crosschaincall
cyl19970726 11015f3
optimize test
cyl19970726 4be6da3
optimize cross chain call
cyl19970726 db86510
update core/state_processor_test.go
cyl19970726 32b2200
add ExternalCallResult field in receipt
cyl19970726 67fb03d
add receipt storage test under condition that receipt.ExternalCallRes…
cyl19970726 a341301
update execution of miner deal cross_chain_call_result
cyl19970726 98d2608
add perByteGasPrice to calculate the gas_used of cross chain call result
cyl19970726 5475f0e
modify chain_maker.go
cyl19970726 0ad8eaa
add external_call_result at transaction and receipt while rpc call
cyl19970726 352b528
update transactions
cyl19970726 56e3188
update state_process.go to support receipt.externalCallResult
cyl19970726 1e3d65f
update params/config.go
cyl19970726 83896e6
fix tendermint return bug
cyl19970726 1849404
update genesis.go DefaultWeb3QTestnetGenesisBlock
cyl19970726 553f0af
update core/genesis.go
cyl19970726 53bcc5a
core/vm/contracts.go CallResult => GetLogByTxHash
cyl19970726 fbdb9c1
core/vm/contracts.go tracePtr => traceIdx
cyl19970726 a0cab3b
add unexpect err as ErrUnsupportMethod
cyl19970726 733de42
opmitize contracts.go
cyl19970726 b070b54
update evm.reset to include in.crossChainTraces and in.traceIdx
cyl19970726 6582d32
update DoCall() to support external call
cyl19970726 2b0e019
tx.externalCallResult() is not included when calculating tx.Hash()
cyl19970726 7d7f293
miner setCrossChainResult at Tx
cyl19970726 76cd045
update internal/ethapi/api.go to support externalCallResult when call…
cyl19970726 8c6a272
verify crossChainCallResult when state syncing
cyl19970726 b5ad15c
update state_processor.go
cyl19970726 b4c0663
add test for tx.WithExternalCallResult()
cyl19970726 2dcea9e
add external flags
cyl19970726 8c62abb
update ethconfig with externalCall to merge chainconfig
cyl19970726 5ad4812
add external config at ethconfig
cyl19970726 3414b01
update worker submit tx process
cyl19970726 845d0c0
update flags
cyl19970726 cd2aa7a
update chain_maker to support externalCall
cyl19970726 e555de0
update chainConfig.ExternalCall.VerifyExternalCallResultWhenSyncState…
cyl19970726 f1996a6
update chainconfig
cyl19970726 80b8bae
update ethconfig
cyl19970726 b360f62
update state sync with external call result
cyl19970726 c2e567a
update DoCall()
cyl19970726 68e7778
Update the logic of worker processing externalCallResult
cyl19970726 3d52488
add new flags
cyl19970726 5a3e262
fix bug when client is nil
cyl19970726 85fd02a
add pre config
cyl19970726 bdff847
add Bench Test to externalCall
cyl19970726 71570e4
modify state_test
cyl19970726 76a638c
Merge branch 'tm_w3q' of https://github.com/QuarkChain/go-ethereum in…
cyl19970726 f2eb4b4
merge from tm_w3q
cyl19970726 7f4eaf8
web3QRinkeby network
cyl19970726 ad26459
add gasCost param to externalCall
cyl19970726 bf24cde
add web3Qrinkeby testnet
cyl19970726 5ba5530
remove unused file
cyl19970726 0d3f386
fix web3qRinkeby genesis bug
cyl19970726 f101f9a
add appendCrossChainCallTrace()
cyl19970726 1e1522f
modify external config
cyl19970726 6ff2538
modify ExternalCall.Role flag type
cyl19970726 8c097ab
fix issue of magic number of role and initialize client multiple times
cyl19970726 5dd02df
update intialize external call client in evm of chain_maker.go
cyl19970726 c4904cb
remove ExternalClient() in consensus
cyl19970726 7dc64a0
Revert "remove ExternalClient() in consensus"
cyl19970726 5040f68
initialize the externalCallClient when initializing the blockchain in…
cyl19970726 ae22739
remove the instance of externalCallClient from the ChainConfig.Extern…
cyl19970726 29145fe
Update the initialization of externalCallClient before entering the EVM
cyl19970726 aea3f9a
Update the initialization of externalCallClient before entering the E…
cyl19970726 b631444
fix the order of import packages
cyl19970726 3f706e2
fix the bug when initializing externalCallClient
cyl19970726 27e0e3c
update the processure of setting up vmConfig.externalCallClient when …
cyl19970726 0bee61a
update docall() to support externalcall
cyl19970726 3d61e40
refactor(eth/backend.go eth/ethconfig/config.go): a constant variabl…
cyl19970726 2578a8b
refactor(core/vm/contracts.go): sort precompile contracts by address
cyl19970726 08cec3b
refactor: remove extra comment
cyl19970726 0c054de
feat: verify the trie root hash of external_call_result when validate…
cyl19970726 86f63ad
refactor: remove extra code when external_call_client is nil for vali…
cyl19970726 3e8fe1e
fix(core): resolving disputes over ambiguous name `corssChainCallTrac…
cyl19970726 5b9faf1
Revert "feat: verify the trie root hash of external_call_result when …
cyl19970726 e1c6986
feat: move external_call_result into block.uncles
cyl19970726 d8cfa3f
feat(core/types): remove external call result from trnsaction
cyl19970726 039d0c4
Revert "add ExternalCallResult field in receipt"
cyl19970726 12b6660
Revert "add receipt storage test under condition that receipt.Externa…
cyl19970726 93984ae
fix: fixed a bug where the call result was stored in unlces when perf…
cyl19970726 ed0ffbf
refactor: remove verifyCallResInSync of chainConfig.ExternalCall
cyl19970726 ce7335f
feat: optimize process of external call by extra flag named EnableExt…
cyl19970726 92a3416
refactor: update chain_maker
cyl19970726 4d3d3aa
fix: fix bug when debug external call tx
cyl19970726 e90f49d
refactor: update worker process
cyl19970726 e4022d9
refactor(core/state_prefetcher.go): update
cyl19970726 9769f5e
refactor: update externalCall config at chainConfig
cyl19970726 d510e3c
refactor: update web3qTestNet config to support external call
cyl19970726 2939b60
build: remove web3qRinkeby net
cyl19970726 0d8e046
style: update format
cyl19970726 af7384c
refactor: fix issue
cyl19970726 058e43e
Revert "Add ExternalCallClient() to consensus.engine interface"
cyl19970726 926e606
refactor: expect error uses the same error handling method as unexpec…
cyl19970726 5f64330
fix: replace externalCallRole with ExternalCallEnableBlockNumber
cyl19970726 d8a21a8
refactor: remove extra testnet
cyl19970726 bea6e2f
feat: optimize state.Process() by setting the flag of whether to use …
cyl19970726 045416b
refactor: update launch process
cyl19970726 14a57d0
refactor: optimize the code of external call in the state synchroniza…
cyl19970726 74726dc
build: remove extra bootnode config
cyl19970726 15c5a6d
test: update external test
cyl19970726 114c261
fix: fix the bug of precompile contract(crossChainCall)
cyl19970726 6a0cb0f
refactor(internal/ethapi/api.go): add new rpc(eth_getExternalCallResult)
cyl19970726 124b5c0
refactor(ethclient/ethclient.go): update ethclient to support externa…
cyl19970726 47bc81f
test: add ethclient test
cyl19970726 b56f610
refactor: update state_process
cyl19970726 23de238
refactor: update log level when state_process()
cyl19970726 58da188
refactor: update miner log level
cyl19970726 4100ce9
refactor: update return error
cyl19970726 7584910
refactor: update gas calculate of externalCall
cyl19970726 9132377
feat: update the calculation formula of gas of externalCall
cyl19970726 99a3bf8
feat: update ExternalCallGas as 100000
cyl19970726 0ffe8a3
fix: fix the bootnodes conflict
cyl19970726 b27e201
refactor: remove unused comment
cyl19970726 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.