AnilChinchawale
29cb1de084
backend added with latest code
2019-01-28 04:50:18 +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
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
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
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +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
parmarrushabh
5501a5707c
fixed
2018-11-17 16:15:25 +05:30
parmarrushabh
9f36d37558
Parallel process block from fetcher
2018-11-17 12:02:43 +05:30
Péter Szilágyi
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
2018-11-15 12:22:13 +02:00
parmarrushabh
abd494055b
fix err download block on masternode
2018-11-14 11:29:48 +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
parmarrushabh
25f010b5ab
remove useless code
2018-11-09 18:20:59 +05:30
AnilChinchwale
2e505d6e99
change info at extra data in block from geth to XDC
2018-11-09 17:10:51 +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
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
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
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
AnilChinchawale
d81dc08a50
Get randomize m2 offer from validators in smart contract.
2018-11-05 11:12:22 +05:30
AnilChinchwale
77bf4b18e1
Fixed default for foundation wallet address at puppeth.
2018-10-29 14:23:45 +05:30
parmarrushabh
ce89b6b92d
making XDPoS as a separate package
2018-10-28 11:58:50 +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
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
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
parmarrushabh
3d11656c45
Fixed add ipc client global variable inject into ethereum instance.
2018-09-27 11:49:51 +05:30
parmarrushabh
76153eea4a
Fixed bug calculate reward and add unit test for it.
2018-09-22 10:12:05 +05:30
gary rong
457e930f27
eth, miner: prefer locally generated uncles vs remote ones ( #17715 )
...
* core, eth: fix dependency cycle
* eth, miner: perfer to locally generated uncle
2018-09-21 00:11:55 +03:00
gary rong
ba0a8b7887
core, eth: fix dependency cycle ( #17720 )
2018-09-20 20:02:15 +03:00
gary rong
d6254f827b
all: protect self-mined block during reorg ( #17656 )
2018-09-20 15:09:30 +03:00
Guillaume Ballet
da29332c5f
core/vm: add switches to select evm+ewasm interpreters ( #17687 )
...
Interpreter initialization is left to the PRs implementing them.
Options for external interpreters are passed after a colon in the
`--vm.ewasm` and `--vm.evm` switches.
2018-09-20 10:44:35 +03:00
parmarrushabh
530f8e3656
Add unit test for calculate reward for signers at reward checkpoint.
2018-09-18 10:01:00 +05:30
MestryOmkar
3584bcfa5f
Fixed bug too many open IPC connect at same time.
2018-09-15 18:29:07 +05:30
parmarrushabh
00df3d6cc3
Add unit test for send tx sign for block signer.
2018-09-06 17:42:02 +05:30
parmarrushabh
9551a39a97
Fixed move method getBlockSingers by blockNumber to utils of contact …
2018-08-31 16:37:52 +05:30
Péter Szilágyi
e8f229b82e
cmd, core, eth, miner, params: configurable gas floor and ceil
2018-08-29 12:40:12 +03:00
gary rong
c1c003e4ff
consensus, miner: stale block mining support ( #17506 )
...
* consensus, miner: stale block supporting
* consensus, miner: refactor seal signature
* cmd, consensus, eth: add miner noverify flag
* cmd, consensus, miner: polish
2018-08-28 16:59:05 +03:00
MestryOmkar
f0b6c70a8e
Refine code and fixed send tx sign for block signer.
2018-08-28 16:07:53 +05:30
gary rong
b69476b372
all: make indexer configurable ( #17188 )
2018-08-28 10:08:16 +03:00
Péter Szilágyi
92381ee009
cmd, eth: clean up miner startup API, drop noop config field
2018-08-23 14:09:45 +03:00
gary rong
b2c644ffb5
cmd, eth, miner: make recommit configurable ( #17444 )
...
* cmd, eth, miner: make recommit configurable
* cmd, eth, les, miner: polish a bit
* miner: filter duplicate sealing work
* cmd: remove uncessary conversion
* miner: avoid microptimization in favor of cleaner code
2018-08-21 22:56:54 +03:00
Pierre Neter
76301ca051
eth: upgradedb subcommand was dropped ( #17464 )
2018-08-21 13:36:38 +03:00
parmarrushabh
8b71594e11
Fixed send tx sign to smart contract for block signer.
2018-08-19 15:29:11 +05:30
Felföldi Zsolt
2cdf6ee7e0
light: CHT and bloom trie indexers working in light mode ( #16534 )
...
This PR enables the indexers to work in light client mode by
downloading a part of these tries (the Merkle proofs of the last
values of the last known section) in order to be able to add new
values and recalculate subsequent hashes. It also adds CHT data to
NodeInfo.
2018-08-15 22:25:46 +02:00
parmarrushabh
78787916b0
Fixed calculate reward for whole block checkpoint reward number.
2018-08-13 14:45:03 +05:30
MestryOmkar
eb8922c652
staking instead of mining
2018-08-12 14:41:12 +05:30
Péter Szilágyi
f0998415ba
cmd, consensus/ethash, eth: miner push notifications
2018-08-10 09:06:59 +03:00
parmarrushabh
bbd132c1a3
Refine comments for feature add reward to validators and signers block.
2018-08-09 14:24:16 +05:30
MestryOmkar
831626de23
Add reward for signers and validators for reward checkpoint.
2018-08-04 14:11:24 +05:30
gary rong
51db5975cc
consensus/ethash: move remote agent logic to ethash internal ( #15853 )
...
* consensus/ethash: start remote ggoroutine to handle remote mining
* consensus/ethash: expose remote miner api
* consensus/ethash: expose submitHashrate api
* miner, ethash: push empty block to sealer without waiting execution
* consensus, internal: add getHashrate API for ethash
* consensus: add three method for consensus interface
* miner: expose consensus engine running status to miner
* eth, miner: specify etherbase when miner created
* miner: commit new work when consensus engine is started
* consensus, miner: fix some logics
* all: delete useless interfaces
* consensus: polish a bit
2018-08-03 11:33:37 +03:00
parmarrushabh
f5316ee18b
Refine code for test coverage.
2018-07-29 10:15:42 +05:30
parmarrushabh
a88d49b1a8
Fixed only send tx sign for validators.
2018-07-24 16:54:17 +05:30
parmarrushabh
3f1c3839c9
Add feature send tx sign (validator block) from coinbase to smart con…
2018-07-22 16:39:59 +05:30
AnilChinchawale
d7f57b92e3
updated backend.go
2018-07-18 17:16:14 +05:30
AnilChinchawale
6e4c9d9387
added DYNAMIC-VALIDATOR
2018-06-24 14:29:24 +05:30
AnilChinchawale
2cde3e9fe8
added MINING PERMISSION EVERY EPOCH BLOCK +1
2018-06-22 14:14:13 +05:30
AnilChinchawale
2a089900f5
added MINER-VALIDATOR
2018-06-18 10:46:57 +05:30
williambannas
9402f96597
eth: conform better to the golint standards ( #16783 )
...
* eth: made changes to conform better to the golint standards
* eth: fix comment nit
2018-06-14 13:14:52 +03:00
AnilChinchawale
0cb82cf94f
added CHAIN, HEADER PARAMS
2018-06-14 10:28:02 +05:30
Wenbiao Zheng
d6ed2f67a8
eth, node, trie: fix minor typos ( #16802 )
2018-05-24 15:55:20 +03:00
kiel barry
4747aad160
eth: golint fixes to variable names ( #16711 )
2018-05-09 10:59:00 +03:00
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
2018-05-07 14:35:06 +03:00
kiel barry
5b3af4c3d1
eth: golint updates for this or self warning ( #16632 )
...
* eth/*:golint updates for this or self warning
* eth/*: golint updates for this or self warning, pr updated per feedback
2018-05-03 15:15:33 +03:00
Yusup
7aad81f881
eth: fix typos ( #16414 )
2018-04-04 12:25:02 +02: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
Felföldi Zsolt
c3f238dd53
les: limit LES peer count and improve peer configuration logic ( #16010 )
...
* les: limit number of LES connections
* eth, cmd/utils: light vs max peer configuration logic
2018-02-05 15:41:53 +02:00
Péter Szilágyi
46e5583993
cmd/utils, eth: init etherbase from within eth ( #15528 )
2017-12-09 23:42:23 +01:00
gary rong
f14047dae5
cmd, consensus, eth: split ethash related config to it own ( #15520 )
...
* cmd, consensus, eth: split ethash related config to it own
* eth, consensus: minor polish
* eth, consenus, console: compress pow testing config field to single one
* consensus, eth: document pow mode
2017-11-24 16:10:27 +02:00
Felföldi Zsolt
ca376ead88
les, light: LES/2 protocol version ( #14970 )
...
This PR implements the new LES protocol version extensions:
* new and more efficient Merkle proofs reply format (when replying to
a multiple Merkle proofs request, we just send a single set of trie
nodes containing all necessary nodes)
* BBT (BloomBitsTrie) works similarly to the existing CHT and contains
the bloombits search data to speed up log searches
* GetTxStatusMsg returns the inclusion position or the
pending/queued/unknown state of a transaction referenced by hash
* an optional signature of new block data (number/hash/td) can be
included in AnnounceMsg to provide an option for "very light
clients" (mobile/embedded devices) to skip expensive Ethash check
and accept multiple signatures of somewhat trusted servers (still a
lot better than trusting a single server completely and retrieving
everything through RPC). The new client mode is not implemented in
this PR, just the protocol extension.
2017-10-24 15:19:09 +02:00
Lio李欧
5df0b240ae
eth: fix typo ( #15252 )
2017-10-06 12:55:18 +02:00
Péter Szilágyi
f585f9eee8
core, eth: clean up bloom filtering, add some tests
2017-09-06 11:14:19 +03:00
Zsolt Felfoldi
4ea4d2dc34
core, eth: add bloombit indexer, filter based on it
2017-09-06 11:13:13 +03:00
Péter Szilágyi
b0ca1b67ce
eth: use maxpeers from p2p layer instead of extra config
2017-09-05 19:18:28 +03:00
Miya Chen
bf1e263128
core, light: send chain events using event.Feed ( #14865 )
2017-08-18 12:58:36 +02:00