Jianrong
249d2b5b6d
implemente proposeblock handler and SyncInfo handler
2021-12-30 11:12:21 +11:00
Jianrong
163ed0fab3
add ProcessQC tests
2021-12-30 11:12:18 +11:00
Liam
b9068974f5
update network layer and add handler functions ( #23 )
...
* update network layer and add handler functions
* fix test syntax error
2021-12-30 11:00:20 +11:00
Jianrong
17f6e67f58
review comment improvement
2021-12-30 11:00:20 +11:00
Jianrong
98014936c3
fix pool test
2021-12-30 11:00:20 +11:00
Jianrong
a39612e540
vote and timeout handlers
2021-12-30 11:00:20 +11:00
Jianrong
4addb69561
generate and verify timeout message
2021-12-30 11:00:20 +11:00
Gerui Wang
db58081b8d
refine race condition solution
2021-12-21 10:19:17 +08:00
Jianrong
d901d1df6e
race condition caused by old eth bug where read before write. We fixing it by passing down header in the snapshot to avoid touching ETH code. This is just a precaution to avoid undiscovered bugs in XDC as a result of fundmental ETH implementation change
2021-12-21 10:32:55 +11:00
Jianrong
0eb2504db3
Add 1 test for adaptor to switch from v1 to v2
2021-10-17 11:20:57 +11:00
Jianrong
ce106abffe
fix tests related to consensus
2021-10-10 22:05:32 +11:00
olumuyiwadad
b909614faa
update T-Z tests.
2021-09-27 16:17:39 +05:30
olumuyiwadad
cf18ceba33
Merge branch 'forking-incident-fix' of https://github.com/hash-laboratories-au/XDPoSChain into hash-laboratories-au-forking-incident-fix
2021-09-23 17:01:19 +05:30
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
4737d9bac6
fix typo in TestUpdateSignerListIfVotedBeforeGap
2021-09-05 16:51:14 +10:00
Jianrong
1d6fa43334
review comment fix
2021-09-05 13:25:43 +10:00
Jianrong
626d573d88
remove unused empty test
2021-09-04 21:11:29 +10:00
Jianrong
57553e4bc7
add test to confirm signlerList at gap block will not be affected by other forking
2021-09-04 21:10:25 +10:00
Jianrong
88ff0a78ad
add additional tests to cover funds state
2021-09-04 21:10:25 +10:00
Jianrong
81b6ffabba
increase XDC test gap to 450
2021-08-29 22:34:58 +10:00
Jianrong
fa2b341c9a
resolving broken eth tests
2021-08-29 17:14:10 +10:00
Jianrong
7b7e34ae00
Fix XDC forking incident with tests
2021-08-29 14:20:01 +10:00
Jianrong
2d92ccb59b
fix all XDCÐ tests and enable it in CI
2021-08-25 23:51:42 +10:00
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
Martin Holst Swende
af401d03a3
all: simplify timestamps to uint64 ( #19372 )
...
* all: simplify timestamps to uint64
* tests: update definitions
* clef, faucet, mobile: leftover uint64 fixups
* ethash: fix tests
* graphql: update schema for timestamp
* ethash: remove unused variable
2019-04-08 12:00:42 +03:00
Martin Holst Swende
c7664b0636
core, cmd/puppeth: implement constantinople fix, disable EIP-1283 ( #18486 )
...
This PR adds a new fork which disables EIP-1283. Internally it's called Petersburg,
but the genesis/config field is ConstantinopleFix.
The block numbers are:
7280000 for Constantinople on Mainnet
7280000 for ConstantinopleFix on Mainnet
4939394 for ConstantinopleFix on Ropsten
9999999 for ConstantinopleFix on Rinkeby (real number decided later)
This PR also defaults to using the same ConstantinopleFix number as whatever
Constantinople is set to. That is, it will default to mainnet behaviour if ConstantinopleFix
is not set.This means that for private networks which have already transitioned
to Constantinople, this PR will break the network unless ConstantinopleFix is
explicitly set!
2019-01-29 17:49:27 +01:00
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:26:07 +02:00
Martin Holst Swende
7c657fc789
tests, core: update tests and make STATICCALL cause touch-delete ( #18187 )
2018-11-29 10:51:57 +02:00
Paweł Bylica
0699287440
tests: Add flag to use EVMC for state tests ( #18084 )
2018-11-26 16:09:32 +01:00
Péter Szilágyi
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
2018-11-15 12:22:13 +02:00
AnilChinchwale
551fd57271
Fixed unit test for penalty feature.
2018-11-07 10:46:09 +05:30
Martin Holst Swende
60827dc50f
tests: update tests, implement no-pow blocks ( #17902 )
...
This commit updates our tests with the latest and greatest from ethereum/tests.
It also contains implementation of NoProof for blockchain tests.
2018-10-16 00:26:47 +02:00
Martin Holst Swende
5b0c9c8ae5
tests: use non-constantinople ropsten for difficulty tests ( #17850 )
...
This is a stopgap until new tests have been generated and imported.
2018-10-05 21:52:05 +02:00
Martin Holst Swende
81375a3801
tests: do not exit early on log hash mismatch ( #17844 )
2018-10-05 08:35:31 +02:00
Felix Lange
79ca6c7a65
tests: update slow test lists, skip on windows/386 ( #17758 )
2018-09-28 22:23:47 +02:00
Péter Szilágyi
ee92bc537f
Merge pull request #17383 from holiman/eip1283
...
Eip1283
2018-09-21 14:16:18 +03:00
gary rong
d6254f827b
all: protect self-mined block during reorg ( #17656 )
2018-09-20 15:09:30 +03:00
Martin Holst Swende
360a72d54e
tests: disable constantinople statetests
2018-09-19 10:05:44 +02:00
Martin Holst Swende
32f28a9360
core/vm, tests: update tests, enable constantinople statetests, fix SAR opcode ( #17538 )
...
This commit does a few things at once:
- Updates the tests to contain the latest data from ethereum/tests repo.
- Enables Constantinople state tests. This is needed to be able to
fuzz-test the evm with constantinople rules.
- Fixes the error in opSAR that we've known about for some time. I was
kind of saving it to see if we hit upon it with the random test
generator, but it's difficult to both enable the tests and have the
bug there -- we don't want to forget about it, so maybe it's better
to just fix it.
2018-09-04 10:49:18 +02:00
Péter Szilágyi
353a82385b
tests: enable the Constantinople fork definition
2018-08-01 18:47:09 +03:00
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
2018-06-05 12:31:34 +02:00
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
2018-05-09 15:24:25 +03:00
Eli
d76c5ca532
tests: golint fixes for tests directory ( #16640 )
2018-05-02 11:20:19 +03:00
Felix Lange
3caf16b15f
core: remove stray account creations in state transition ( #16470 )
...
The 'from' and 'to' methods on StateTransitions are reader methods and
shouldn't have inadvertent side effects on state.
It is safe to remove the check in 'from' because account existence is
implicitly checked by the nonce and balance checks. If the account has
non-zero balance or nonce, it must exist. Even if the sender account has
nonce zero at the start of the state transition or no balance, the nonce
is incremented before execution and the account will be created at that
time.
It is safe to remove the check in 'to' because the EVM creates the
account if necessary.
Fixes #15119
2018-04-10 15:33:25 +02:00
Martin Holst Swende
958ed4f3d9
core/state: rework dirty handling to avoid quadratic overhead
2018-03-28 09:29:28 +03:00
Felix Lange
a5c0bbb4f4
all: update license information ( #16089 )
2018-02-14 13:49:11 +01:00
Péter Szilágyi
55599ee95d
core, trie: intermediate mempool between trie and database ( #15857 )
...
This commit reduces database I/O by not writing every state trie to disk.
2018-02-05 17:40:32 +01:00
Péter Szilágyi
566d5c0777
core, eth, les, light: get rid of redundant methods
2018-01-30 18:42:00 +02:00