Tuna
0ccac591f9
undo delay
2018-09-27 17:16:24 +07:00
Tuna
30ae355fd1
adjust signed recently condition
2018-09-27 10:36:40 +07:00
Nguyen Ba Tam
b431d627c8
remove delay when mine new block
2018-09-18 14:42:34 +07:00
Tuna
8d6549d98c
adding sort to masternode list
2018-09-10 12:12:51 +07:00
Tam Nguyen
8818e652d2
Delete snapshot_test.go
...
fix cycle import
2018-08-24 16:50:53 +07:00
Tam Nguyen
e52c4bbcd5
Delete snapshot_test.go
...
fix cycle import
2018-08-24 16:50:34 +07:00
Nguyen Ba Tam
10b2ec598f
split list blocks insert to chain by index (epoch - gas)
2018-08-24 15:00:51 +07:00
Tuna
01f2f84188
bypass header check for signer data loaded from snapshot
2018-08-20 10:17:58 +07:00
DinhLN
206c2cab4d
Fixed move foundation wallet address to genesis config.
2018-08-17 11:03:40 +07:00
Nguyen Ba Tam
a554c5b968
remove 2 commands posv.propose & posv.discard
2018-08-17 10:37:04 +07:00
Nguyen Ba Tam
b8f6655d37
remove call api from rpc to consensus posv and add again with clique
2018-08-17 10:36:49 +07:00
Nguyen Ba Tam
57b4580c1a
add again code directory clique from commit c3fbc24012
2018-08-17 10:36:27 +07:00
Nguyen Ba Tam
6bae36b4d5
Making posv as a separate package
2018-08-17 10:36:27 +07:00
Tuna
c3f49b7158
hotfix - bypass signer check at CP header
2018-08-16 17:13:32 +07:00
Tuna
75d729efde
gofmt, bypass signed recently for epoch block
2018-08-16 11:26:37 +07:00
Tuna
555a9bc328
by pass difficulty check in some scenes
2018-08-16 10:58:21 +07:00
Tuna
0cba36a6ba
directly set mns to snapshot
2018-08-15 18:02:48 +07:00
Tuna
cafab05d13
Merge pull request #116 from ngtuna/signed-recently-fix
...
hotfix: signed recently issue
2018-08-10 15:11:41 +07:00
dinhln89
727a7323cd
Add signers and finality to block status rpc api.
2018-08-08 14:06:22 +07:00
Tuna
04d8966857
hotfix: signed recently issue
...
fix #115
2018-08-07 18:20:52 +07:00
Tuna
5a771ed6f0
node should also count to his turn in case some nodes are down
2018-07-17 11:04:52 +07:00
Tuna
d1138b9b10
bugfix: unexpected pre node
2018-07-12 17:00:06 +07:00
Tuna
3a139d6c78
masternode[0] will create block 1
2018-07-05 17:12:22 +07:00
Tuna
a72d7782ae
in case a masternode resigns, let him continue until end of the current epoch
2018-07-03 16:15:56 +07:00
Tuna
54a0bad209
get masternodes set from latest checkpoint block header instead of from snapshot
2018-06-29 15:50:03 +07:00
Tuna
ab9f40aeed
update new set of masternodes at end of each epoch (distance = m1Gap)
2018-06-29 14:31:33 +07:00
dinhln89
f5604918e8
Refine comments for feature add reward to validators and signers block.
2018-06-18 10:45:38 +07:00
dinhln89
d1aa9bc746
Add reward for signers and validators for reward checkpoint.
2018-06-15 15:56:07 +07:00
dinhln89
847bcffb87
Fixed only send tx sign for validators.
2018-06-13 16:05:32 +07:00
dinhln89
7b74ed6bf5
Fixed minor warning of go lint and rename checkpoint config parameter.
2018-06-06 18:16:47 +07:00
dinhln89
0d59fa3408
Add feature calculate reward for signers at checkpoint block.
2018-06-06 15:36:03 +07:00
dinhln89
fdcd97950d
Fixed parse signer address using ecrecover and add reward for signer not using coinbase value.
2018-06-04 16:17:38 +07:00
Tuna
d91e00e170
reuse Clique voting strategy for now, leave header.Coinbase empty
2018-06-01 10:05:56 +07:00
Tuna
789e03f167
block 1 - all masternodes race to create
2018-06-01 10:02:06 +07:00
Tuna
5494d3a7d0
masternode takes turn (circle) to propose block
2018-06-01 09:59:46 +07:00
Tuna
0ae49c74fa
fix import cycle
2018-05-31 16:34:17 +07:00
Tuna
ce3e641085
use cross-package channel listenning to checkpoint
2018-05-22 17:45:09 +07:00
Tuna
034f773b6b
allow non-zero coinbase in block header
2018-05-16 23:25:28 +07:00
Tuna
0953671747
fix bug: only cancel mining mode, keep node alive
2018-05-16 11:01:45 +07:00
Tuna
f1cf546def
correct chain, header params
2018-05-15 10:54:52 +07:00
Tuna
304f116b0d
add validation in front of mining
2018-05-14 18:12:05 +07:00
Tuna
a8fb4ed8f3
add block reward to clique config
2018-04-11 14:38:59 +07:00
Tuna
16009f940c
temporary set block reward
2018-04-11 14:38:33 +07:00
Kyuntae Ethan Kim
d429a92f09
consensus/ethash: fixed typo ( #16253 )
2018-03-05 11:32:56 +02:00
Péter Szilágyi
17b0e226d3
travis, build, consensus: drop support for Go 1.7
2018-02-27 18:25:56 +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
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
Felix Lange
924065e19d
consensus/ethash: improve cache/dataset handling ( #15864 )
...
* consensus/ethash: add maxEpoch constant
* consensus/ethash: improve cache/dataset handling
There are two fixes in this commit:
Unmap the memory through a finalizer like the libethash wrapper did. The
release logic was incorrect and freed the memory while it was being
used, leading to crashes like in #14495 or #14943 .
Track caches and datasets using simplelru instead of reinventing LRU
logic. This should make it easier to see whether it's correct.
* consensus/ethash: restore 'future item' logic in lru
* consensus/ethash: use mmap even in test mode
This makes it possible to shorten the time taken for TestCacheFileEvict.
* consensus/ethash: shuffle func calc*Size comments around
* consensus/ethash: ensure future cache/dataset is in the lru cache
* consensus/ethash: add issue link to the new test
* consensus/ethash: fix vet
* consensus/ethash: fix test
* consensus: tiny issue + nitpick fixes
2018-01-23 12:05:30 +02:00
gary rong
3a5a5599dd
consensus/ethash: fix byzantium difficulty comment typo ( #15842 )
2018-01-10 10:58:03 +02:00
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64
2018-01-03 14:45:35 +02:00