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
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
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
AnilChinchawale
4e3cb79ff2
Refine code using log error when create tx sign.
2018-09-02 17:32:33 +05:30
parmarrushabh
9551a39a97
Fixed move method getBlockSingers by blockNumber to utils of contact …
2018-08-31 16:37:52 +05:30
MestryOmkar
f0b6c70a8e
Refine code and fixed send tx sign for block signer.
2018-08-28 16:07:53 +05:30
parmarrushabh
8b71594e11
Fixed send tx sign to smart contract for block signer.
2018-08-19 15:29:11 +05:30
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
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
parmarrushabh
f5316ee18b
Refine code for test coverage.
2018-07-29 10:15:42 +05:30
parmarrushabh
dd9a1bbbf0
Fixed go lint.
2018-07-27 17:02:20 +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
AnilChinchawale
0cb82cf94f
added CHAIN, HEADER PARAMS
2018-06-14 10:28:02 +05:30
gary rong
77da203547
eth: update higest block we know during the sync if a higher was found ( #16283 )
...
* eth: update higest block we know during the sync if a higher was found
* eth: avoid useless sync in fast sync
2018-03-09 11:51:30 +02:00
Kyuntae Ethan Kim
f6bef558aa
eth: fixed typo ( #16274 )
2018-03-07 11:15:54 +02:00
Péter Szilágyi
ca64a122d3
eth/downloader: save and load trie sync progress ( #16224 )
2018-03-03 00:52:39 +01:00
Andrey Petrov
2e9c8fd4fb
eth, les: allow exceeding maxPeers for trusted peers ( #16189 )
...
Fixes #3326 , #14472
2018-02-27 12:52:59 +02:00
Anton Evangelatov
ae9f97221a
metrics: pull library and introduce ResettingTimer and InfluxDB reporter ( #15910 )
...
* go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter.
* vendor: change nonsense/go-metrics to ethersphere/go-metrics
* go-metrics: add tests. move ResettingTimer logic from reporter to type.
* all, metrics: pull in metrics package in go-ethereum
* metrics/test: make sure metrics are enabled for tests
* metrics: apply gosimple rules
* metrics/exp, internal/debug: init expvar endpoint when starting pprof server
* internal/debug: tiny comment formatting fix
2018-02-23 11:56:08 +02:00
Péter Szilágyi
5cf1d35470
eth, les, light: filter on logs only, derive receipts on demand
2018-02-22 19:12:43 +02:00
Felix Lange
a5c0bbb4f4
all: update license information ( #16089 )
2018-02-14 13:49:11 +01:00
Péter Szilágyi
57fd2da0fe
eth: only disable fast sync after success
2018-02-11 17:25:00 +02:00
Péter Szilágyi
96dad6b6f6
eth/downloader: don't require state for ancestor lookups
2018-02-11 14:43:56 +02:00
Péter Szilágyi
eb07dbb079
eth, light: minor light client startup cleanups
2018-02-08 07:49:23 +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
Martin Holst Swende
bc0666fb27
eth/downloader: fix #15858 by checking if downloader dropPeer function is set ( #15992 )
2018-02-05 15:38:06 +02:00
Péter Szilágyi
566d5c0777
core, eth, les, light: get rid of redundant methods
2018-01-30 18:42:00 +02:00
Péter Szilágyi
1bf508b449
accounts/abi/bind: support event filtering in abigen
2018-01-24 10:54:13 +02:00
Nick Johnson
b06e20bc7c
eth/gasprice: set default percentile to 60%, count blocks instead of transactions ( #15828 )
...
The first should address a long term issue where we recommend a gas
price that is greater than that required for 50% of transactions in
recent blocks, which can lead to gas price inflation as people take
this figure and add a margin to it, resulting in a positive feedback
loop.
2018-01-10 13:57:36 +01:00
Felix Lange
9d06026c19
all: regenerate codecs with gencodec commit 90983d99de ( #15830 )
...
Fixes #15777 because null is now allowed for hexutil.Bytes.
2018-01-08 15:13:22 +02:00
Felix Lange
5c2f1e0014
all: update generated code ( #15808 )
...
* core/types, core/vm, eth, tests: regenerate gencodec files
* Makefile: update devtools target
Install protoc-gen-go and print reminders about npm, solc and protoc.
Also switch to github.com/kevinburke/go-bindata because it's more
maintained.
* contracts/ens: update contracts and regenerate with solidity v0.4.19
The newer upstream version of the FIFSRegistrar contract doesn't set the
resolver anymore. The resolver is now deployed separately.
* contracts/release: regenerate with solidity v0.4.19
* contracts/chequebook: fix fallback and regenerate with solidity v0.4.19
The contract didn't have a fallback function, payments would be rejected
when compiled with newer solidity. References to 'mortal' and 'owned'
use the local file system so we can compile without network access.
* p2p/discv5: regenerate with recent stringer
* cmd/faucet: regenerate
* dashboard: regenerate
* eth/tracers: regenerate
* internal/jsre/deps: regenerate
* dashboard: avoid sed -i because it's not portable
* accounts/usbwallet/internal/trezor: fix go generate warnings
2018-01-08 14:15:57 +02:00
Péter Szilágyi
ae71da1b03
eth: fix tracer panic when running without configs + reexec ( #15799 )
2018-01-04 12:58:11 +01:00
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
2018-01-03 14:45:35 +02:00
Furkan KAMACI
b8caba9709
various: remove redundant parentheses ( #15793 )
2018-01-03 14:14:47 +02:00
Felix Lange
9d48dbf5c2
eth: revert tracer preimage recording ( #15800 )
...
This reverts commits 85a1eda59e (#15792 ) and c495bca4ad (#15787 )
because they introduce database writes during tracing.
2018-01-03 11:58:25 +01:00
Felix Lange
85a1eda59e
eth: uncaptialize tracer preimage error message ( #15792 )
...
* eth: uncaptialize tracer preimage error message
* eth: improve very important error message
2018-01-03 10:53:09 +02:00
cdetrio
c495bca4ad
eth: enable preimage recording when tracing ( #15787 )
2018-01-02 12:49:17 +01:00
Péter Szilágyi
9c42a41ed8
eth/downloader: avoid hidden reference to finished statesync request ( #15545 )
2018-01-02 11:38:26 +01:00
Péter Szilágyi
f7ca03ae87
eth, les, light: expose chain config in les node info too ( #15732 )
2017-12-28 14:18:34 +01:00
gary rong
5f8888e116
accounts, consensus, core, eth: make chain maker consensus agnostic ( #15497 )
...
* accounts, consensus, core, eth: make chain maker consensus agnostic
* consensus, core: move CalcDifficulty to Engine interface
* consensus: add docs for calcDifficulty function
* consensus, core: minor comment fixups
2017-12-22 14:37:50 +02:00
Péter Szilágyi
5258785c81
cmd, core, eth/tracers: support fancier js tracing ( #15516 )
...
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 13:56:11 +02:00
Michael Ruminer
732f5468d3
eth: make tracing API errors more user friendly ( #15589 )
2017-12-09 23:47:13 +01:00
Péter Szilágyi
46e5583993
cmd/utils, eth: init etherbase from within eth ( #15528 )
2017-12-09 23:42:23 +01:00
Benoit Verkindt
eab2201f80
eth: return rlp-decoded values from debug_storageRangeAt ( #15476 )
...
Fixes #15196
2017-12-06 16:42:16 +01:00
Rob
d927c67f9d
eth/downloader: update tests for reliability ( #15337 )
...
Updated use of Parallel and added some subtests to help isolate
them. Increased timeout in RequestHeadersByNumber so it
doesn't time out and causes other tests to break.
2017-12-01 12:54:17 +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
Ricardo Domingos
9ff9d04a69
all: fix code comment typos ( #15547 )
...
* console: fix typo in comment
* contracts/release: fix typo in comment
* core: fix typo in comment
* eth: fix typo in comment
* miner: fix typo in comment
2017-11-24 11:20:01 +02:00
Nick Johnson
72ed186f46
eth, internal: Implement getModifiedAccountsBy(Hash|Number) using trie diffs ( #15512 )
...
* eth, internal: Implement using trie diffs
* eth, internal: Changes in response to review
* eth: More fixes to getModifiedAccountsBy*
* eth: minor polishes on error capitalization
2017-11-20 17:18:50 +02:00
jtakalai
5aa3eac22d
eth/downloader: minor comments cleanup ( #15495 )
...
it's -> its
pet peeve, and I like to imagine I'm not alone.
2017-11-16 13:14:51 +02:00
Péter Szilágyi
463014126f
core/bloombits: handle non 8-bit boundary section matches
2017-11-15 14:10:35 +02:00
ferhat elmas
86f6568f66
build: enable unconvert linter ( #15456 )
...
* build: enable unconvert linter
- fixes #15453
- update code base for failing cases
* cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
2017-11-10 19:06:45 +02:00
ferhat elmas
9619a61024
all: gofmt -w -s ( #15419 )
2017-11-08 11:45:52 +01:00
Péter Szilágyi
0095531a58
core, eth, les: fix messy code ( #15367 )
...
* core, eth, les: fix messy code
* les: fixed tx status test and rlp encoding
* core: add a workaround for light sync
2017-10-25 12:18:44 +03: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
Péter Szilágyi
35767dfd0c
cmd, eth: separate out FakePeer for future reuse
2017-10-10 15:52:11 +03:00
Miya Chen
40a3856af9
eth/fetcher: check the origin of filter tasks ( #14975 )
...
* eth/fetcher: check the origin of filter task
* eth/fetcher: add some details to fetcher logs
2017-10-10 11:53:05 +03:00
Lio李欧
5df0b240ae
eth: fix typo ( #15252 )
2017-10-06 12:55:18 +02:00
rjl493456442
94903d572b
internal, accounts, eth: utilize vm failed flag to help gas estimation
2017-10-02 15:26:40 +03:00
Péter Szilágyi
2ab2a9f131
core/bloombits, eth/filters: handle null topics ( #15195 )
...
When implementing the new bloombits based filter, I've accidentally broke null
topics by removing the special casing of common.Hash{} filter rules, which
acted as the wildcard topic until now.
This PR fixes the regression, but instead of using the magic hash
common.Hash{} as the null wildcard, the PR reworks the code to handle nil
topics during parsing, converting a JSON null into nil []common.Hash topic.
2017-09-27 12:14:52 +02:00
Ernesto del Toro
3c8656347f
eth, internal/ethapi: fix spelling of 'Ethereum' ( #15164 )
2017-09-20 11:31:31 +02:00