Anil Chinchawale
d2ce55ec96
Merge pull request #237 from gzliudan/fix-empty-address
...
fix empty address
2023-06-16 14:23:44 +05:30
wgr523
2f10aac60f
eth: ensure from<to when tracing chain (credits Chen Nan via bugbounty) ( #251 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-05-25 14:22:23 +10:00
wgr523
a67b347ba8
fix comment of todo ( #267 )
2023-05-20 17:46:06 +08:00
wgr523
cd74061ac2
Extend masternode candidate ( #261 )
...
* V2 truncate MaxMasternodes from candidates after penalty,
V1 same as before
TestUpdateMultipleMasterNodes: test V2, in snapshot we have all candidates, but at epoch switch, we pick MaxMasternodes
* code looks better
2023-05-16 21:43:56 +08:00
Daniel Liu
fd6cbd5df1
fix nonce error for debug trace api ( #256 )
2023-05-06 09:50:25 +08:00
Daniel Liu
3c21125da5
fix EmptyAddress
2023-03-16 11:47:39 +08:00
Liam
9552500335
xdpos API getV2Block ( #227 )
2023-03-05 02:17:46 +08:00
span14
eac0e42584
fix typo
2023-02-02 12:13:16 -05:00
span14
5aff0d35db
fix typo
2023-01-30 22:22:57 -05:00
span14
abb0dcc48b
add confirmed loopup
2023-01-30 22:22:57 -05:00
Liam
c4f9a552e5
Multi config bug fix ( #216 )
...
* refactor multi config
remove pool cleaner
correct message and log level
2022-12-17 20:23:46 +08:00
Liam
f57e2c3577
Bug Fix on memory leak when doing send tx, block etc to peers ( #212 )
...
* resolve conflict
* update version number
2022-12-09 14:54:27 +08:00
Liam
6ffbd3e141
Xin 259 support multi v2 config ( #210 )
...
* update timeout period and waittime
* remove wrong comment
* update config for preparing test
2022-12-06 20:08:56 +08:00
Jerome
ff6ee67462
Fix memory leak when doing send tx, vote, block etc to peers ( #211 )
2022-11-28 21:52:36 +11:00
Daniel Liu
42379f530f
internal/ethapi: EstimateGas and Call handle revert error( #173 ) ( #200 )
...
hot fix for EstimateGas and Call handle revert error https://github.com/XinFinOrg/XDPoSChain/issues/173
2022-10-27 17:25:25 +08:00
Liam Lai
30d7958a6f
skip process message whenever synchronising
2022-10-15 01:05:38 +08:00
Liam
55d994690a
Xin 248 correct timeout message skip rule ( #192 )
...
* test on current devnet issue
* change to times 3 to fit correct dist
2022-10-15 00:29:02 +08:00
Liam
a75c315eb5
fix penalty calculation bug ( #189 )
2022-10-09 14:06:04 +08:00
Liam
f98d513f88
fix skip snapshot block ( #178 )
2022-09-26 22:44:20 +08:00
Liam
dad7eff036
Xin 231 sync issues - too far messages should omit and skip to process ( #177 )
...
* omit too far v2 messages
* update error msg
* improve log
* fix test
* remove useless file
2022-09-05 10:38:45 +08:00
Liam
765d962d8b
xin-202 fix sync issue on v2 blocks ( #108 )
...
* fix sync issue on v2 blocks
* change back to get header method
2022-07-12 16:57:18 +02:00
Liam
e55fca6703
log improvement and some refactor ( #110 )
2022-07-10 01:11:28 +02:00
Liam
35b964fc16
revert change peer address change ( #101 )
2022-06-21 00:11:06 +02:00
Liam
2d25b89610
xin-201 skip message while synchronize ( #100 )
2022-06-19 10:59:23 +02:00
Liam
ac5096d692
upgrade log level and log message ( #102 )
2022-06-19 10:59:09 +02:00
Liam
50ae0c95fd
xin-197 xin-198 fix devnet issues ( #99 )
...
* xin-197 xin-198 fix devnet issues
* update log
2022-06-05 11:06:32 +02:00
Liam
ca6a645fca
refactor and improve log ( #92 )
...
* refactor and improve log
* fix conflict and test
2022-05-23 02:34:32 +01:00
Jerome
ca336f6029
update the remaining consensus v2 related types to core ( #94 )
2022-05-22 14:39:04 +10:00
Liam
5fffa0cd43
xin-188 update penalty limit epoch constant for v2 and shorter test ( #87 )
2022-05-18 11:17:32 -04:00
wgr523
8fde52c512
Xin 145 ( #82 )
...
* add HandleProposedBlock() in procFutureBlocks()
* add proposedBlockHandler for downloader
2022-04-22 00:12:44 +08:00
Liam
92857e50e5
xin-177 check penalty only on epoch switch block and Add Hook on initial ( #78 )
...
* check penalty only on epoch switch block
* skip calculate penalty on first v2 block
* clean code, its doing same thing
2022-04-02 22:59:39 -06:00
wgr523
b790b077c9
XIN-164 add GapNumber inside Vote, and tests ( #74 )
2022-03-25 23:22:24 +08:00
Liam
a3d5d82722
xin-168 node stops because dead lock on timeout events ( #73 )
...
* fix race condition issue
* add test to prove
2022-03-25 21:24:35 +11:00
Jerome
9bb1a6e1b3
XIN-159, 160 and 161 ( #69 )
...
* XIN-159, 160 and 161
* update the bft handler to make sure we don't process dis-qualified messages
* add verify header missing checks and its tests
2022-03-13 22:00:26 +11:00
Liam
7fca1a627a
xin-144 avoid duplicate messages ( #68 )
...
* avoid duplicate messages
* update comment
2022-03-08 19:36:02 +01:00
Jerome
8363641b2c
check against master node list before sending out anything ( #67 )
...
* check against master node list before sending out anything
* remove duplicated signatures from QC
* add break when checking allowed to send
2022-03-08 09:12:52 +11:00
Jerome
e493ddfd6d
add verifyTC and verifyTimeoutMessage ( #63 )
...
* add verifyTC and verifyTimeoutMessage
* remove v2 func from adaptor
2022-03-02 09:17:57 +11:00
Jerome
d773e15ca8
Xin 137 ( #62 )
...
* add GapNumber
* fix broken countdown test
* add gapNumber to existing tests
2022-02-28 18:51:42 +11:00
Jerome
431c870fa0
verify vote ( #50 )
...
* verify vote
* fix vote tests and add temporary solution for initialize
* remove the drop peer comment
2022-02-26 17:42:08 +11:00
wgr523
89acbdd742
XIN-121 Reward hook ( #57 )
...
* v2 Hook Reward, need test
* test reward
* fix RewardHook due to modifying params config directly (#56 )
* more test
* finish test
Co-authored-by: Jerome <wjrjerome@gmail.com>
2022-02-19 15:31:19 +11:00
wgr523
9b47146120
add calcMasternodes, HookPenalty for v2, tests ( #52 )
2022-02-13 22:15:23 +08:00
Jerome
76724b06d7
only broadcast vote, timeout and syncinfo if the peer do not have it ( #53 )
2022-02-12 10:17:19 +11:00
Liam
da336f53b1
xin-95 add xdpos2 protocol ( #47 )
...
* add xdpos2 protocol
* update xdpos2 command
2022-02-05 23:25:23 +03:00
Jerome
7cc2bef2d3
update adaptor for verify headers and fix vote handler to include +1 distance when checking rounds ( #48 )
2022-01-30 14:26:05 +11:00
Liam
aab040fd55
adjust lock ( #39 )
...
* adjust lock
* change error log
* change error log
2022-01-16 13:31:23 +03:00
Jerome
f8d3f9f8c6
Xin 113 is epoch switch ( #37 )
...
* add isEpochSwitch function and refactor utils
* fix broken first v2 epoch switch block
* use adaptor epoch switch function to determine v1 v2 epoch swtich block
* add test for the GetMasternodesByNumber and GetCurrentEpochSwitchBlock function
* add v2 test for isAuthroisedAddress
* Use GetCurrentEpochSwitchBlock in findNearestSignedBlock api
2022-01-14 21:38:38 +11:00
Liam
3ac908be8d
xin-104 ( #36 )
...
* hand and vote self mined block
* add error log
2022-01-08 10:56:00 +11:00
Jianrong
15275ded65
Commit grand grand parent block(continous rounds) if enough votes or by proposedBlockHandler
2022-01-01 16:20:33 +11:00
Liam
35eebabae0
xin-106 add generated message into its pool ( #32 )
...
* add debug log and change to contain or add for cache
* add generated message into its pool
2021-12-30 11:45:22 +11:00
Liam
6c5fe34615
v2 miner function implementation and happy path ( #22 )
...
* New struct in consensus/XDPoS/utils/types.go, util functions, and test. (#14 )
* define vote, timeout, sync info, qc, tc, extra fields in types.go, add test in types_test.go
* add json tag in types.go, refine encoder decoder of extra fields
* refactor types.go utils.go
* re-write types, comments
* add Hash SigHash for types, and tests
* define Round type
* remove unnecessary logs
* add v2 engine functions placeholder
* typo fix on the consensus v2 function placeholders
* add countdown timer
* make initilised private to countdown
* add v2 specific config struct
* rename some config variables
* Implement BFT Message receiver (#13 )
* fix or skip tests due to PR-136 changes
* add bft receiver functions
* add bft receiver functions
* rename tc to TimeoutCert
* implement more functions
* New struct in consensus/XDPoS/utils/types.go, util functions, and test. (#14 )
* define vote, timeout, sync info, qc, tc, extra fields in types.go, add test in types_test.go
* add json tag in types.go, refine encoder decoder of extra fields
* refactor types.go utils.go
* re-write types, comments
* add Hash SigHash for types, and tests
* define Round type
* remove unnecessary logs
* add temp functions
* add v2 engine functions placeholder
* typo fix on the consensus v2 function placeholders
* add countdown timer
* make initilised private to countdown
* push verify function
* add test on receiving vote
* revert type change
* add async on broadcast function
* add quit initial
* fix test
Co-authored-by: Jianrong <wjrjerome@gmail.com>
Co-authored-by: wgr523 <wgr523@gmail.com>
* generate and verify timeout message
* Consensus V2 variable, timeout pool (#19 )
* fill in XDPoS_v2 variables and processQC/TC
* add timeout pool, refine engine variables
* refactor type functions
* solve a small pointer bug
* create general pool and its test, refine engine
* refine pool, add xdpos v2 config cert threshold
* refine config
* vote and timeout handlers
* fix pool test
* bft miner preparation
* review comment improvement
* update
* relocate tests
* add and remove comment
* fix the syntax error
* update network layer and add handler functions (#23 )
* update network layer and add handler functions
* fix test syntax error
* add ProcessQC implementation
* add ProcessQC tests
* add snapshot test
* add wait qc process
* remove testing files
* add route snapshot
* fix merge issue
* add default v2 behaviour (#24 )
* add v2 ecrecover functions and refactor test
* fix all the tests
* put minimun lock variable
* debugging prepare and seal v2 blocks
* Trigger proposeBlockHandler after v2 block received and verified in fetcher
* skip snapshot apply related tests
* update test check
* rename bfter to bft handler and ignore normal behviour
* fix bugs during local 4 node run
* fix test
* fix sync info test
* fix bugs during local 4 node run
* rebase and fix bug
* remove hook validators function"
Co-authored-by: wgr523 <wgr523@gmail.com>
Co-authored-by: Jianrong <wjrjerome@gmail.com>
2021-12-30 11:45:18 +11:00
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
Jianrong
bd60e1b0cf
add ProcessQC implementation
2021-12-30 11:00:20 +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
Liam
a1b77f3ca8
Implement BFT Message receiver ( #13 )
...
* fix or skip tests due to PR-136 changes
* add bft receiver functions
* add bft receiver functions
* rename tc to TimeoutCert
* implement more functions
* New struct in consensus/XDPoS/utils/types.go, util functions, and test. (#14 )
* define vote, timeout, sync info, qc, tc, extra fields in types.go, add test in types_test.go
* add json tag in types.go, refine encoder decoder of extra fields
* refactor types.go utils.go
* re-write types, comments
* add Hash SigHash for types, and tests
* define Round type
* remove unnecessary logs
* add temp functions
* add v2 engine functions placeholder
* typo fix on the consensus v2 function placeholders
* add countdown timer
* make initilised private to countdown
* push verify function
* add test on receiving vote
* revert type change
* add async on broadcast function
* add quit initial
* fix test
Co-authored-by: Jianrong <wjrjerome@gmail.com>
Co-authored-by: wgr523 <wgr523@gmail.com>
2021-12-30 11:00:20 +11:00
olumuyiwadad
afe58d79fc
fix api trace block & Change option pending block.
2021-11-11 18:49:57 +05:30
Jianrong
e34311ff45
Remove unused consensus v1 methods
2021-10-10 16:04:34 +11:00
Jianrong
48be4e4ca7
Move consensus hooks to its own package
2021-10-10 16:04:32 +11:00
Jianrong
0aec2a1e9e
Seperate hooks from XDPoS adaptor
2021-10-10 16:02:19 +11:00
Jianrong
fcbc5a28e1
refactor XDPoS to accommodate multiple consensus engine versions
2021-10-10 16:02:16 +11:00
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
a41658640f
hotfix etherbase/coinbase
...
Send tx sign for block number to smart contract blockSigner.
2021-09-17 18:18:55 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
7b7e34ae00
Fix XDC forking incident with tests
2021-08-29 14:20:01 +10:00
Jianrong
0fdab2027c
add linting as the first CI task
2021-08-07 14:27:08 +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
AnilChinchawale
80cd2d3871
added eth_client func.
2020-08-31 17:52:03 +05:30
parmarrushabh
3e5f4d54a8
Hot_Fix Bad block Error
2019-04-25 12:11:30 +05:30
Péter Szilágyi
d8787230fa
eth, les, light: enforce CHT checkpoints on fast-sync too
2019-04-17 14:56:58 +03:00
Martin Holst Swende
e872ba7a9e
eth, les, geth: implement cli-configurable global gas cap for RPC calls ( #19401 )
...
* eth, les, geth: implement cli-configurable global gas cap for RPC calls
* graphql, ethapi: place gas cap in DoCall
* ethapi: reformat log message
2019-04-08 15:15:13 +03:00
AnilChinchawale
00c46851a2
downloader error fix
2019-03-26 14:54:16 +05:30
parmarrushabh
7e491a582b
penalties returned at tip fork
2019-03-26 14:25:03 +05:30
parmarrushabh
4af57cc070
case m2 down affect to m1.
2019-03-25 12:19:25 +05:30
AnilChinchawale
ef94c38a68
penalties returned
2019-03-25 11:52:00 +05:30
AnilChinchawale
ed6533e092
Added "xdc" prefix in address
2019-03-17 16:14:42 +05:30
AnilChinchawale
c3c32ce113
Updated files.
2019-03-12 15:57:58 +05:30
parmarrushabh
b493f4b6ca
hot fix
2019-03-03 15:36:33 +05:30
MestryOmkar
1861c13bcd
fetcher-hotfix
2019-03-02 15:10:35 +05:30
parmarrushabh
6adee64867
handle SignHash error
2019-02-27 14:58:16 +05:30
parmarrushabh
147e1f0baf
create new func penalties for hard fork
2019-02-19 17:25:31 +05:30
Martin Holst Swende
631e2f07f6
eth: make tracers respect pre- EIP 158/161 rule
2019-02-09 17:35:54 +01:00
AnilChinchawale
29cb1de084
backend added with latest code
2019-01-28 04:50:18 +05:30
AnilChinchawale
7f18c84ea5
changes added in web3,bignumber
2019-01-27 04:49:00 +05:30
AnilChinchawale
9210dd4a76
Updated ethstats for XinFin Network
2019-01-26 04:43:22 +05:30
AnilChinchawale
c9889f2ad7
Changes added in tracers
2019-01-24 04:43:26 +05:30
gary rong
d5cad488be
core, eth: fix database version ( #18429 )
...
* core, eth: fix database version
* eth: polish error message
2019-01-11 13:49:12 +02:00
gary rong
e8ff318205
eth/tracer: extend create2 ( #18318 )
...
* eth/tracer: extend create2
* eth/tracers: fix create2-flaw in prestate_tracer
* eth/tracers: fix test
* eth/tracers: update assets
2019-01-05 21:26:50 +01:00
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:26:07 +02:00
Wenbiao Zheng
81c3dc728f
eth/downloader: progress in stateSync not used anymore ( #17998 )
2018-12-21 23:36:14 +01:00
Martin Holst Swende
5f251a6448
downloader: fix edgecase where returned index is OOB for downloader ( #18335 )
...
* downloader: fix edgecase where returned index is OOB for downloader
* downloader: documentation
Co-Authored-By: holiman <martin@swende.se>
2018-12-20 10:46:08 +01:00
Martin Holst Swende
83a9a73b89
cmd/geth, core, eth: implement Constantinople override flag ( #18273 )
...
* geth/core/eth: implement constantinople override flag
* les: implemnent constantinople override flag for les clients
* cmd/geth, eth, les: fix typo, move flag to experimentals
2018-12-11 14:19:03 +02:00
Péter Szilágyi
31b3334922
cmd/utils, eth: minor polishes on whitelist code
2018-12-10 14:47:01 +02:00
Ryan Schneider
48b70ecff1
cmd, eth: Add support for --whitelist <blocknum>=<hash>,... flag
...
* Rejects peers that respond with a different hash for any of the passed in block numbers.
* Meant for emergency situations when the network forks unexpectedly.
2018-12-10 14:30:06 +02:00
Péter Szilágyi
0983d02aa9
eth, internal/web3ext: tiny polishes in tracers
2018-12-10 12:33:50 +02:00
Martin Holst Swende
42a914a84f
cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local filesystem
2018-12-10 12:33:50 +02:00
Max Sistemich
dfa16a3e4e
eth/tracers: fixed incorrect storage from prestate_tracer ( #18253 )
...
* eth: fixed incorrect storage from prestate_tracer
* eth/tracers: updated assets.go
2018-12-10 11:17:31 +02:00
MestryOmkar
0bb2ba1116
update minGasPrice in SuggestPrice
2018-12-10 11:09:51 +05:30
Paweł Bylica
de39513ced
core, internal, eth, miner, les: Take VM config from BlockChain ( #17955 )
...
Until this commit, when sending an RPC request that called `NewEVM`, a blank `vm.Config`
would be taken so as to set some options, based on the default configuration. If some extra
configuration switches were passed to the blockchain, those would be ignored.
This PR adds a function to get the config from the blockchain, and this is what is now used
for RPC calls.
Some subsequent changes need to be made, see https://github.com/ethereum/go-ethereum/pull/17955#pullrequestreview-182237244
for the details of the discussion.
2018-12-06 14:34:49 +01:00
Péter Szilágyi
174083c3ae
eth/downloader: fix light client cht binary search issue
2018-11-28 13:46:13 +02:00
Felix Lange
b24ef5e05d
eth: increase timeout in TestBroadcastBlock ( #18064 )
2018-11-23 11:14:09 +02:00
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +05:30
AnilChinchawale
428d3e2f9c
fix duplicate hook rewards with --announceTxs
2018-11-22 12:43:16 +05:30
MestryOmkar
4ab49f2752
goroutine get signers
2018-11-19 12:20:40 +05:30
AnilChinchawale
e8336d2770
evm mem db
2018-11-19 12:11:07 +05:30
parmarrushabh
51c88fe8ce
create new api get reward
2018-11-19 11:21:42 +05:30
Rahulraj04
01583f3548
print err
2018-11-17 16:41:00 +05:30
Rahulraj04
6c67be797b
update logging
2018-11-17 16:37:14 +05:30
parmarrushabh
5501a5707c
fixed
2018-11-17 16:15:25 +05:30
parmarrushabh
f5e8c999a2
set block difficulty belong to creator turn
2018-11-17 12:52:10 +05:30
Rahulraj04
9087c0852b
reduce timed out when sync block
2018-11-17 12:22:40 +05:30
parmarrushabh
9f36d37558
Parallel process block from fetcher
2018-11-17 12:02:43 +05:30
Péter Szilágyi
accc0fab4f
core, eth/downloader: fix ancestor lookup for fast sync
2018-11-16 13:21:20 +02:00
Martin Holst Swende
51b2f1620c
downloader: different sync strategy
2018-11-16 11:54:36 +02:00
mr_franklin
b91766fe6d
eth: fix comment typo ( #18114 )
...
* consensus/clique: fix comment typo
* eth,eth/downloader: fix comment typo
2018-11-15 16:31:24 +02:00
Péter Szilágyi
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
2018-11-15 12:22:13 +02:00
AnilChinchawale
5709546dfd
filter txs before add to pool
2018-11-14 11:32:40 +05:30
parmarrushabh
abd494055b
fix err download block on masternode
2018-11-14 11:29:48 +05:30
parmarrushabh
52ae30023a
refactor RW & pairRW connect for block , transaction
2018-11-14 10:40:05 +05:30
mr_franklin
4fecc7a3b1
eth: fix minor grammar issue in comment ( #18091 )
2018-11-13 11:57:46 +02:00
MestryOmkar
d3fc7da872
Fixed gasprice minimum 2500 for get gasprice api.
2018-11-12 16:09:28 +05:30
MestryOmkar
bbadba469b
change difficulty block in XDPoS
2018-11-12 15:52:55 +05:30
parmarrushabh
176b51f1f8
ignore faster with block no validator m2
2018-11-12 15:41:24 +05:30
parmarrushabh
f586154a8e
fix error transaction underpriced when add sign tx to pool(full)
2018-11-12 13:08:55 +05:30
MestryOmkar
5111364215
fix error double validation : m2 not validate body before verify block
2018-11-12 12:39:52 +05:30
AnilChinchawale
4211d56ad0
Fixed reward inflation and add unit test.
2018-11-12 12:03:22 +05:30
MestryOmkar
de7c60ed49
sleep time when fetch receive future block
2018-11-12 11:45:26 +05:30
parmarrushabh
3268d372a0
fix error fatal error: concurrent map read and map write
2018-11-12 11:39:43 +05:30
parmarrushabh
3fc36efeb3
Fixed golint.
2018-11-09 10:49:11 +05:30
parmarrushabh
25f010b5ab
remove useless code
2018-11-09 18:20:59 +05:30
MestryOmkar
01a3ec9a47
tiny fix m2 duplicate sign block
2018-11-09 18:07:01 +05:30
MestryOmkar
579adf1c8e
fix tiny error when full node import block
2018-11-09 17:23:18 +05:30
AnilChinchwale
2e505d6e99
change info at extra data in block from geth to XDC
2018-11-09 17:10:51 +05:30
MestryOmkar
1175d8e1b1
fix dv m2 validate block detail before broadcast
2018-11-09 16:53:09 +05:30
AnilChinchwale
53e39d77ac
fix error double validation
2018-11-09 16:42:45 +05:30
AnilChinchwale
03c07f37b4
tiny fix double validation
2018-11-09 16:39:14 +05:30
parmarrushabh
1396b1a10f
Fixed unit test for new m2 block header.
2018-11-09 16:29:54 +05:30
MestryOmkar
07b4be1284
Add new block header validator for store m2 data.
2018-11-09 16:11:13 +05:30
parmarrushabh
f0761106f4
m1 mine block but only broadcast block wait m2 validate
2018-11-09 16:01:01 +05:30
AnilChinchwale
3f1aadb861
fixed double validater
2018-11-09 15:43:29 +05:30
AnilChinchwale
8b92c4176c
move from SubscribeTx to Subscribe Special Tx in Double Validate
2018-11-09 15:00:22 +05:30
MestryOmkar
89d931299f
correct order - dv before importing
2018-11-09 14:46:03 +05:30
AnilChinchwale
360584a498
Revert adding double validation layer
2018-11-09 14:39:48 +05:30
parmarrushabh
161053b345
verify validators info at checkpoint block
2018-11-09 14:20:08 +05:30
parmarrushabh
7ebdbeed64
fix after reviewing
2018-11-09 13:07:34 +05:30
MestryOmkar
076cc560e5
add a pair connections with each peer
2018-11-09 12:52:01 +05:30
parmarrushabh
9d6344fbb4
Broadcast special Tx through pairRW
2018-11-09 12:45:18 +05:30
Corey Lin
a5dc087845
core/vm, eth/tracers: use pointer receiver for GetRefund ( #18018 )
2018-11-08 13:07:15 +01:00
Corey Lin
212bf266c5
eth, p2p: fix comment typos ( #18014 )
2018-11-08 12:25:14 +01:00
Felix Lange
0bcff8f525
eth/downloader: speed up tests by generating chain only once ( #17916 )
...
* core: speed up GenerateChain
Use a mock implementation of ChainReader instead of creating
and destroying a BlockChain object for each generated block.
* eth/downloader: speed up tests by generating chain only once
This change reworks the downloader tests so they share a common test
blockchain instead of generating a chain in every test. The tests are
roughly twice as fast now.
2018-11-07 15:07:43 +01:00
Wenbiao Zheng
b35165555d
eth/downloader: remove the expired id directly ( #17963 )
2018-11-07 15:30:19 +02:00
Martin Holst Swende
eea3ae42a3
core, eth/downloader: fix validation flaw, fix downloader printout flaw ( #17974 )
2018-11-07 14:47:11 +02:00
Martin Holst Swende
dc6648bb58
downloader: measure successfull deliveries, not failed ( #17983 )
...
* downloader: measure successfull deliveries, not failed
* downloader: fix typos
2018-11-07 14:18:07 +02:00
parmarrushabh
9fb0674907
add a pair connections with each peer
2018-11-07 12:23:51 +05:30
AnilChinchwale
9414ae6f2a
Add penalty feature for prevent signer without sign in epoc make slow
2018-11-07 12:05:58 +05:30
parmarrushabh
38d7c2c707
tiny fix hook penalty
2018-11-07 11:23:55 +05:30
parmarrushabh
eb9742ae27
verify penalty info in header check point
2018-11-07 11:15:32 +05:30
parmarrushabh
b41dcb301f
fix error when find penalties in 4 epoch ago
2018-11-07 11:02:12 +05:30
MestryOmkar
f39fe02a9c
update log & check case a master node in,out continuity
2018-11-07 10:58:12 +05:30
AnilChinchwale
551fd57271
Fixed unit test for penalty feature.
2018-11-07 10:46:09 +05:30
AnilChinchwale
f5152bf0cf
Add penalty feature for prevent signer without sign in epoc make slow…
2018-11-07 10:26:28 +05:30
AnilChinchawale
b8cb19732f
lookup txPool before listening to imcoming tx
2018-11-06 18:05:59 +05:30
MestryOmkar
b955291388
init double validation layer
2018-11-06 18:00:21 +05:30
AnilChinchawale
deb79f4a23
push Randomization implementation
2018-11-06 17:27:13 +05:30
parmarrushabh
944494f6e4
Revert Randomization implementation
2018-11-06 16:16:29 +05:30
MestryOmkar
7aa35671ad
Fixed randomize generator not using matrix mechanism.
2018-11-05 11:58:04 +05:30
MestryOmkar
20c5123739
Fixed unit test for block randomize.
2018-11-05 11:45:14 +05:30
AnilChinchawale
d81dc08a50
Get randomize m2 offer from validators in smart contract.
2018-11-05 11:12:22 +05:30
AnilChinchawale
7e7bc37c20
convert update M1 method from async to sync
2018-11-02 12:14:43 +05:30
parmarrushabh
b0e95fcc58
fix reduce change code
2018-10-31 11:14:32 +05:30
parmarrushabh
cb5a55a904
change config from flag to toml file; fix tag listenaddr
2018-10-31 10:30:25 +05:30
parmarrushabh
51ef74203a
update return error when update M1
2018-10-31 18:58:34 +05:30
parmarrushabh
6adb7c1d68
fix test download and recover some download config & test
2018-10-31 18:46:57 +05:30
AnilChinchwale
77bf4b18e1
Fixed default for foundation wallet address at puppeth.
2018-10-29 14:23:45 +05:30
MestryOmkar
ece1dccd93
Fixed test problem when change config MaxBlockFetch in downloader.
2018-10-29 13:21:37 +05:30
parmarrushabh
ce89b6b92d
making XDPoS as a separate package
2018-10-28 11:58:50 +05:30
parmarrushabh
b32dca7f64
statically set chuck size to 900
2018-10-28 10:56:35 +05:30
AnilChinchwale
af02783e8e
Fixed reward overflow uint64.
2018-10-28 10:53:21 +05:30
parmmarrushabh
dccf2ca3e9
Add signers and finality to block status rpc api.
2018-10-27 16:28:04 +05:30
Wenbiao Zheng
6810933640
eth/downloader: SetBlocksIdle is not used ( #17962 )
...
__
<(o )___
( ._> /
`---'
2018-10-24 01:27:49 +02:00
Martin Holst Swende
4c0883e20d
core/vm: adds refund as part of the json standard trace ( #17910 )
...
This adds the global accumulated refund counter to the standard
json output as a numeric json value. Previously this was not very
interesting since it was not used much, but with the new sstore
gas changes the value is a lot more interesting from a consensus
investigation perspective.
2018-10-23 16:28:18 +02:00
Wenbiao Zheng
3088c122d8
eth/downloader: fix comment typos ( #17956 )
2018-10-23 13:21:16 +02:00
parmmarrushabh
356a13e109
Fixed send tx sign using block hash instead of block number.
2018-10-23 11:50:56 +05:30
AnilChinchawale
6a76879b85
Add unit test for calculate reward for signers at reward checkpoint.
2018-10-23 11:15:11 +05:30
MestryOmkar
ec421b98b1
masternode should also count to his turn in case some of his friends are down
2018-10-22 10:53:15 +05:30
MestryOmkar
7adecc32d3
node waits to his turn until there is a new block comes in
2018-10-22 10:37:12 +05:30
AnilChinchawale
77ac77cdb1
staking not mining
2018-10-21 16:42:10 +05:30
parmarrushabh
264a6dc9db
Fixed calculate reward for holders.
2018-10-20 16:20:30 +05:30
MestryOmkar
f814908442
get masternodes set from latest checkpoint block header instead of fr… …
2018-10-10 14:15:15 +05:30
Péter Szilágyi
6ee3b26f44
eth/downloader: fix invalid hash chain error due to head mini reorg
2018-10-05 10:45:02 +03:00
Martin Holst Swende
89a32451ae
core/vm: faster create/create2 ( #17806 )
...
* core/vm/runtim: benchmark create/create2
* core/vm: do less hashing in CREATE2
* core/vm: avoid storing jumpdest analysis for initcode
* core/vm: avoid unneccesary lookups, remove unused fields
* core/vm: go formatting tests
* core/vm: save jumpdest analysis locally
* core/vm: use common.Hash instead of nil, fix review comments
* core/vm: removed type destinations
* core/vm: correct check for empty hash
* eth: more elegant api_tracer
* core/vm: address review concerns
2018-10-04 18:15:37 +03:00
Liang Ma
ff6e0351ab
eth: fixed the minor typo inside the comments ( #17830 )
2018-10-04 12:35:24 +03:00
MestryOmkar
a7deff5891
minor log cleaning up
2018-10-02 12:23:02 +05:30
parmarrushabh
9f5cba7dc7
update new set of masternodes at end of each epoch (distance = m1Gap)
2018-09-30 12:00:33 +05:30
Ryan Schneider
b69942befe
core, internal/ethapi: add and use LRU cache for receipts ( #17610 )
2018-09-29 22:53:31 +02:00
ledgerwatch
3d782bc727
eth: broadcast blocks to at least 4 peers ( #17725 )
2018-09-29 22:17:06 +02:00
Wenbiao Zheng
024b22c30e
eth/downloader: use intermediate variable for better readability ( #17510 )
2018-09-29 22:13:39 +02:00
HackyMiner
107f556b2d
internal/ethapi: add eth_chainId method ( #17617 )
...
This implements EIP-695.
2018-09-29 22:07:02 +02:00
parmarrushabh
3d11656c45
Fixed add ipc client global variable inject into ethereum instance.
2018-09-27 11:49:51 +05:30