Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
209ed4a
Create a basic spec for casper testing
sorpaas May 17, 2018
dc1a3de
Add basic hybridCasperTransition flag
sorpaas May 17, 2018
b8c6dc5
Refactor contract hex code and update casper ones
sorpaas May 17, 2018
965f08f
Fix missing imports
sorpaas May 17, 2018
5df4948
Init casper contract code at the transition block
sorpaas May 17, 2018
0610c8f
Init casper contract abi
sorpaas May 17, 2018
a6a63aa
Use fixed168x10 to replace decimal10 temporarily
sorpaas May 17, 2018
4e56fd7
Use double quotes to make it valid json
sorpaas May 17, 2018
29cd6f8
Use int168 to replace fixed168x10
sorpaas May 17, 2018
8b283b6
Call init function in Casper
sorpaas May 17, 2018
6343894
Lower initial difficulty for casper local testnet
sorpaas May 17, 2018
86e6377
Increase the difficulty a little
sorpaas May 17, 2018
77f1275
Tweaking the testnet config
sorpaas May 17, 2018
4eeb6d5
Add basic framework for transaction reordering
sorpaas May 17, 2018
a7a02ca
Handle transaction ordering in miner
sorpaas May 17, 2018
3bf06f6
Verify transaction ordering in verifier
sorpaas May 18, 2018
96ad2b5
Delegate all work to EthereumMachine
sorpaas May 18, 2018
d3d5b5d
Implement vote_gas_used through metadata
sorpaas May 18, 2018
39f51f4
Implement vote transaction check
sorpaas May 18, 2018
5b6f904
Implement all vote transaction related features
sorpaas May 18, 2018
d58e5ca
Set casper contract balance
sorpaas May 18, 2018
837612b
Call init_epoch for epoch length
sorpaas May 18, 2018
8f509be
Implement epoch score fork choice
sorpaas May 18, 2018
fc47b49
Handle Casper finalization
sorpaas May 18, 2018
1729fa3
typo: where
sorpaas May 22, 2018
cc4aaa4
Remove transacrion ordering requirement for Casper
sorpaas May 22, 2018
19fe45f
typo: extra empty line
sorpaas May 22, 2018
40ecf94
typo: remove unused functions
sorpaas May 22, 2018
f77e0be
Fix expect messages
sorpaas May 22, 2018
ab251ed
Reduce value of Casper parameters for testing
sorpaas May 23, 2018
6bab4ee
Update casper contract
sorpaas May 23, 2018
03fbfec
Use fixed168x10 simple casper bytecode
sorpaas May 23, 2018
0ba80b9
Add warm up period to casper init function
sorpaas May 23, 2018
fb2b9d5
typo: should use current.metadata()
sorpaas May 23, 2018
a7346f0
Use ethabi version with fixed168x10 support
sorpaas May 23, 2018
c5f6e5a
Update capser-temporary ethabi version
sorpaas May 23, 2018
a13f5c6
Deploy RLP decoder contract for Casper
sorpaas May 24, 2018
1f23a01
Add a convenience function send_unsigned_transaction in RPC
sorpaas May 24, 2018
9c51885
Enable EIP86 internal schedule
sorpaas May 24, 2018
4993c60
Make it possible to deserialize all casper params
sorpaas May 28, 2018
c3a9ec4
Commit a missing file rlp_decoder.hex
sorpaas May 28, 2018
5900797
Move is_vote_transaction to HybridCasper
sorpaas May 28, 2018
0849f4e
Manually implement EthEngine trait for engines
sorpaas May 28, 2018
c61e1fb
Initialize the hybrid casper parameter in Ethash
sorpaas May 28, 2018
44063c9
Move vote_transaction check in unordered_check to Ethash
sorpaas May 28, 2018
da167b7
Move eip86 casper check to Ethash
sorpaas May 28, 2018
9de9f19
Move casper schedule enabling logic to HybridCasper struct
sorpaas May 28, 2018
6c903cb
Move state init and casper contract init to HybridCasper
sorpaas May 28, 2018
ae38621
Move epoch initialization functionality to HybridCasper
sorpaas May 28, 2018
7525e83
Move closing metadata write to HybridCasper
sorpaas May 28, 2018
426b85f
Move null_signer check out of Machine
sorpaas May 28, 2018
7a7e26f
Move prepare_env_info and verify_transaction_outcome out of Machine
sorpaas May 28, 2018
0ad4ffa
Remove unused casper variables in Machine
sorpaas May 28, 2018
e547167
Move metadata struct to hybrid_casper
sorpaas May 28, 2018
017d326
Move internal logic for updating metadata to HybridCasper sturct
sorpaas May 28, 2018
59d449f
Move casper fork choice and ancestry action to hybrid casper
sorpaas May 29, 2018
233c0f0
Move env_info and transaction outcome casper-specific logic to Hybrid…
sorpaas May 29, 2018
0004c8b
Fix unused imports and unused variables
sorpaas May 29, 2018
86d08d6
Remove unused contract declaration
sorpaas May 29, 2018
58875db
Fix all missing docs
sorpaas May 29, 2018
bfd1b0c
Fix tests
sorpaas May 29, 2018
1319068
Use saturating_add to avoid possible overflow
sorpaas May 29, 2018
e67ff23
Allow engine to specify additional transactions as service trnsaction
sorpaas May 29, 2018
3f41dbc
Mark casper vote transactions as service transaction
sorpaas May 29, 2018
e10bb64
Set casper values back to defaults
sorpaas May 30, 2018
eaadeee
Update testnet definition
sorpaas May 30, 2018
4ce510e
Merge branch 'master' of https://github.com/paritytech/parity into ca…
sorpaas Jun 4, 2018
5c7d64e
Fix cargo.lock merge failure
sorpaas Jun 4, 2018
1ba5e4d
Fix casper test config
sorpaas Jun 5, 2018
55f4e3b
Merge branch 'master' of https://github.com/paritytech/parity into ca…
sorpaas Jun 7, 2018
801a964
Fix tests in EIP86 incident
sorpaas Jun 8, 2018
cfe51a8
Fix all instance of typo for "deserializing"
sorpaas Jun 12, 2018
7bfd990
Use unwrap_or_else whenever possible
sorpaas Jun 12, 2018
5097bc6
Update casper_test file to point to the current live testnet
sorpaas Jun 12, 2018
773ba57
Merge branch 'master' of https://github.com/paritytech/parity into ca…
sorpaas Jun 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ethcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ethcore-stratum = { path = "./stratum" }
ethcore-transaction = { path = "./transaction" }
ethereum-types = "0.3"
memory-cache = { path = "../util/memory_cache" }
ethabi = "5.1"
ethabi-derive = "5.0"
ethabi-contract = "5.0"
ethabi = { git = "https://github.com/paritytech/ethabi", branch = "casper" }
ethabi-derive = { git = "https://github.com/paritytech/ethabi", branch = "casper" }
ethabi-contract = { git = "https://github.com/paritytech/ethabi", branch = "casper" }
ethjson = { path = "../json" }
ethkey = { path = "../ethkey" }
ethstore = { path = "../ethstore" }
Expand Down
1 change: 1 addition & 0 deletions ethcore/res/code/blockhash.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"73fffffffffffffffffffffffffffffffffffffffe33141561006a5760014303600035610100820755610100810715156100455760003561010061010083050761010001555b6201000081071515610064576000356101006201000083050761020001555b5061013e565b4360003512151561008457600060405260206040f361013d565b61010060003543031315156100a857610100600035075460605260206060f361013c565b6101006000350715156100c55762010000600035430313156100c8565b60005b156100ea576101006101006000350507610100015460805260206080f361013b565b620100006000350715156101095763010000006000354303131561010c565b60005b1561012f57610100620100006000350507610200015460a052602060a0f361013a565b600060c052602060c0f35b5b5b5b5b"
1 change: 1 addition & 0 deletions ethcore/res/code/msg_hasher.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"60007f01000000000000000000000000000000000000000000000000000000000000006000350460f8811215610038576001915061003f565b60f6810391505b508060005b368312156100c8577f01000000000000000000000000000000000000000000000000000000000000008335048391506080811215610087576001840193506100c2565b60b881121561009d57607f8103840193506100c1565b60c08112156100c05760b68103600185013560b783036020035260005101840193505b5b5b50610044565b81810360388112156100f4578060c00160005380836001378060010160002060e052602060e0f3610143565b61010081121561010557600161011b565b6201000081121561011757600261011a565b60035b5b8160005280601f038160f701815382856020378282600101018120610140526020610140f350505b50505050"
1 change: 1 addition & 0 deletions ethcore/res/code/purity_checker.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"600061033f537c0100000000000000000000000000000000000000000000000000000000600035047f80010000000000000000000000000000000000000030ffff1c0e00000000000060205263a1903eab8114156103f7573659905901600090523660048237600435608052506080513b806020015990590160009052818152602081019050905060a0526080513b600060a0516080513c6080513b8060200260200159905901600090528181526020810190509050610100526080513b806020026020015990590160009052818152602081019050905061016052600060005b602060a05103518212156103c957610100601f8360a051010351066020518160020a161561010a57fe5b80606013151561011e57607f811315610121565b60005b1561014f5780607f036101000a60018460a0510101510482602002610160510152605e8103830192506103b2565b60f18114801561015f5780610164565b60f282145b905080156101725780610177565b60f482145b9050156103aa5760028212151561019e5760606001830360200261010051015112156101a1565b60005b156101bc57607f6001830360200261010051015113156101bf565b60005b156101d157600282036102605261031e565b6004821215156101f057600360018303602002610100510151146101f3565b60005b1561020d57605a6002830360200261010051015114610210565b60005b1561022b57606060038303602002610100510151121561022e565b60005b1561024957607f60038303602002610100510151131561024c565b60005b1561025e57600482036102605261031d565b60028212151561027d57605a6001830360200261010051015114610280565b60005b1561029257600282036102605261031c565b6002821215156102b157609060018303602002610100510151146102b4565b60005b156102c657600282036102605261031b565b6002821215156102e65760806001830360200261010051015112156102e9565b60005b156103035760906001830360200261010051015112610306565b60005b1561031857600282036102605261031a565bfe5b5b5b5b5b604060405990590160009052600081526102605160200261016051015181602001528090502054156103555760016102a052610393565b60306102605160200261010051015114156103755760016102a052610392565b60606102605160200261010051015114156103915760016102a0525b5b5b6102a051151561039f57fe5b6001830192506103b1565b6001830192505b5b8082602002610100510152600182019150506100e0565b50506001604060405990590160009052600081526080518160200152809050205560016102e05260206102e0f35b63c23697a8811415610440573659905901600090523660048237600435608052506040604059905901600090526000815260805181602001528090502054610300526020610300f35b50"
1 change: 1 addition & 0 deletions ethcore/res/code/rlp_decoder.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"60006109ac5260006109cc527f0100000000000000000000000000000000000000000000000000000000000000600035046109ec526000610a0c5260006109005260c06109ec51101515585760f86109ec51101561006e5760bf6109ec510336141558576001610a0c52610098565b60013560f76109ec51036020035260005160f66109ec510301361415585760f66109ec5103610a0c525b61022060016064818352015b36610a0c511015156100b557610291565b7f0100000000000000000000000000000000000000000000000000000000000000610a0c5135046109ec526109cc5160206109ac51026040015260016109ac51016109ac5260806109ec51101561013b5760016109cc5161044001526001610a0c516109cc5161046001376001610a0c5101610a0c5260216109cc51016109cc52610281565b60b86109ec5110156101d15760806109ec51036109cc51610440015260806109ec51036001610a0c51016109cc51610460013760816109ec5114156101ac5760807f01000000000000000000000000000000000000000000000000000000000000006001610a0c5101350410151558575b607f6109ec5103610a0c5101610a0c5260606109ec51036109cc51016109cc52610280565b60c06109ec51101561027d576001610a0c51013560b76109ec510360200352600051610a2c526038610a2c5110157f01000000000000000000000000000000000000000000000000000000000000006001610a0c5101350402155857610a2c516109cc516104400152610a2c5160b66109ec5103610a0c51016109cc516104600137610a2c5160b66109ec5103610a0c510101610a0c526020610a2c51016109cc51016109cc5261027f565bfe5b5b5b81516001018083528114156100a4575b5050601f6109ac511115155857602060206109ac5102016109005260206109005103610a0c5261022060016064818352015b6000610a0c5112156102d45761030a565b61090051610a0c516040015101610a0c51610900516104400301526020610a0c5103610a0c5281516001018083528114156102c3575b50506109cc516109005101610420526109cc5161090051016109005161044003f3"
1 change: 1 addition & 0 deletions ethcore/res/code/simple_casper.hex

Large diffs are not rendered by default.

Loading