MestryOmkar
b0cfa3037f
fixed error
2018-11-24 17:55:15 +05:30
parmarrushabh
c2414371ca
fix error read reward
2018-11-24 17:40:36 +05:30
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
parmarrushabh
b6dc253064
Update blockchain.go
2018-11-19 12:23:33 +05:30
parmarrushabh
51c88fe8ce
create new api get reward
2018-11-19 11:21:42 +05:30
parmarrushabh
f5e8c999a2
set block difficulty belong to creator turn
2018-11-17 12:52:10 +05:30
Rahulraj04
bc027c4fc0
check nonce special transaction before promote
2018-11-17 12:34:24 +05:30
parmarrushabh
9f36d37558
Parallel process block from fetcher
2018-11-17 12:02:43 +05:30
AnilChinchawale
6f4bb10efd
sort by big.Int
2018-11-12 16:16:24 +05:30
AnilChinchawale
1eda4b653c
stop node when updateM1 fails
2018-11-12 12:51:18 +05:30
AnilChinchwale
360584a498
Revert adding double validation layer
2018-11-09 14:39:48 +05:30
AnilChinchwale
9fc966c7db
Broadcast special Tx through pairRW
2018-11-09 12:56:56 +05:30
MestryOmkar
8e1ffd7c72
Add penalty feature for prevent signer without sign in epoc make slow
2018-11-09 12:49:54 +05:30
parmarrushabh
9d6344fbb4
Broadcast special Tx through pairRW
2018-11-09 12:45:18 +05:30
AnilChinchwale
9414ae6f2a
Add penalty feature for prevent signer without sign in epoc make slow
2018-11-07 12:05:58 +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
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
1857fe3991
remove delay when mine new block
2018-11-03 17:12:18 +05:30
parmarrushabh
4962300b5e
adding sort to masternode list
2018-11-02 14:27:17 +05:30
AnilChinchawale
7e7bc37c20
convert update M1 method from async to sync
2018-11-02 12:14:43 +05:30
parmarrushabh
51ef74203a
update return error when update M1
2018-10-31 18:58:34 +05:30
parmarrushabh
ce89b6b92d
making XDPoS as a separate package
2018-10-28 11:58:50 +05:30
parmmarrushabh
dccf2ca3e9
Add signers and finality to block status rpc api.
2018-10-27 16:28:04 +05:30
MestryOmkar
cd3f0e37b4
move gap into genesis config
2018-10-24 14:29:03 +05:30
MestryOmkar
a9e0b66e20
tiny adjustment: m1gap
2018-10-23 11:53:58 +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
MestryOmkar
f814908442
get masternodes set from latest checkpoint block header instead of fr… …
2018-10-10 14:15:15 +05:30
parmarrushabh
9f5cba7dc7
update new set of masternodes at end of each epoch (distance = m1Gap)
2018-09-30 12:00:33 +05:30
AnilChinchawale
5f79d00d04
FIX UNITTESTS
2018-06-30 15:07:40 +05:30
Kyuntae Ethan Kim
63687f04e4
core: check transaction/receipt count match when reconstructing blocks ( #16272 )
2018-03-07 12:05:14 +02:00
Martin Holst Swende
f83237573f
core: make current*Block atomic, and accessor functions mutex-free ( #16171 )
...
* core: make current*Block atomic, and accessor functions mutex-free
* core: fix review concerns
* core: fix error in atomic assignment
* core/light: implement atomic getter/setter for headerchain
2018-02-26 11:53:10 +02:00
Péter Szilágyi
89f914c030
core: flush out trie cache more meaningfully on stop ( #16143 )
...
* core: flush out trie cache more meaningfully on stop
* core: upgrade legacy tests to chain maker
2018-02-23 14:02:33 +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
Felix Lange
b007412db1
core: soften up state memory force-commit log messages ( #16080 )
...
Talk about "state" instead of "trie timing", "trie memory" and remove
the overzealous warning when the limit is just reached. Since the time
limit is always reached on slow machines, move the message to info level
so users don't freak out about internal details.
2018-02-13 15:12:55 +02:00
Péter Szilágyi
69c1f2c2a7
core: force import known but rolled back blocks
2018-02-12 11:54:14 +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
Péter Szilágyi
fdb34b7a7c
Merge pull request #15996 from karalabe/drop-redundant-methods
...
core, eth, les, light: get rid of redundant methods
2018-01-31 12:46:38 +02:00
Martin Holst Swende
017b9f7eac
core, ethdb: reuse database batches ( #15989 )
...
* leveldb: Update leveldb to 211f780 (poolfix)
* core, ethdb: reuse database batches
2018-01-30 19:03:31 +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
84be009154
core: sorted reorg insertion order for proper head header updating
2018-01-22 14:11:07 +02:00
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
2018-01-03 14:45:35 +02:00
ferhat elmas
5866626b08
core, p2p/discv5: use time.NewTicker instead of time.Tick ( #15747 )
2018-01-02 12:50:46 +01:00
Péter Szilágyi
54ce3887d8
core: split same-td blocks on block height
2017-11-13 17:07:05 +02:00
Péter Szilágyi
629b5837e9
core: revert invalid block dedup code ( #15235 )
2017-10-03 18:59:53 +02:00
Péter Szilágyi
10b3f97c9d
core: only fire one chain head per batch ( #15123 )
...
* core: only fire one chain head per batch
* miner: announce chan events synchronously
2017-09-11 13:13:05 +03:00
Felix Lange
10181b57a9
core, eth/downloader: commit block data using batches ( #15115 )
...
* ethdb: add Putter interface and Has method
* ethdb: improve docs and add IdealBatchSize
* ethdb: remove memory batch lock
Batches are not safe for concurrent use.
* core: use ethdb.Putter for Write* functions
This covers the easy cases.
* core/state: simplify StateSync
* trie: optimize local node check
* ethdb: add ValueSize to Batch
* core: optimize HasHeader check
This avoids one random database read get the block number. For many uses
of HasHeader, the expectation is that it's actually there. Using Has
avoids a load + decode of the value.
* core: write fast sync block data in batches
Collect writes into batches up to the ideal size instead of issuing many
small, concurrent writes.
* eth/downloader: commit larger state batches
Collect nodes into a batch up to the ideal size instead of committing
whenever a node is received.
* core: optimize HasBlock check
This avoids a random database read to get the number.
* core: use numberCache in HasHeader
numberCache has higher capacity, increasing the odds of finding the
header without a database lookup.
* core: write imported block data using a batch
Restore batch writes of state and add blocks, tx entries, receipts to
the same batch. The change also simplifies the miner.
This commit also removes posting of logs when a forked block is imported.
* core: fix DB write error handling
* ethdb: use RLock for Has
* core: fix HasBlock comment
2017-09-09 19:03:07 +03:00