Leo Chen
5137991a21
Merge pull request #888 from LeoHChen/add_foundational_nodes
...
Add foundational nodes
6 years ago
Leo Chen
1c852ba97b
Merge pull request #2 from harmony-ek/add_foundational_nodes
...
Fix groups of 10
6 years ago
Eugene Kim
aad9425d93
Separate groups of 10
6 years ago
Eugene Kim
fb9a20500e
Remove misplaced blank lines
6 years ago
Leo Chen
17c2fc3126
[foundational] add more foundational node pubkeys
...
account index: 92, 141
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
98ae11f594
[foundational] add account address for foundational nodes
...
40, 41, ,42, 90, 91, 140, 190
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
919718bbc0
Merge pull request #839 from harmony-ek/streamline_resharding_timing
...
Streamline resharding timing + block reward
6 years ago
Eugene Kim
e5d0c84ecc
Disable reshaarding
...
This is a temporary measure until we can:
- Fix shard state mutation bug, and
- Implement key passphrase recycle across process restart (exec) for
shard migration.
6 years ago
Eugene Kim
d399a7291e
Add GoDoc to fix golint
6 years ago
Eugene Kim
fde24f7bc0
Remove unused import to unbreak goimports
6 years ago
Eugene Kim
1895a3564e
Merge branch 'master' of github.com:harmony-one/harmony into streamline_resharding_timing
6 years ago
Leo Chen
9dcb3d740b
Merge pull request #887 from LeoHChen/wallet_fix_empty_passphrase
...
Wallet fix empty passphrase
6 years ago
Eugene Kim
cd7d5056f6
Disable DRand processing
...
Suggested-by: Rongjian Lan <rongjian@harmony.one>
6 years ago
Eugene Kim
cf41d88b34
Remove Leader from Committee
...
Leader is authoritatively defined as the first item of NodeList.
6 years ago
Eugene Kim
7eaf379757
Do not fail hard on shard state mismatch
...
This is because CalculateNewShardState() has been seen to be
nondeterministic (different output with the same input).
6 years ago
Eugene Kim
be151a81b9
Make copy of shard state where appropriate
...
That is, 1) when using the current shard state as a mutable working copy
for resharding, and 2) defensively when caching for later retrieval.
6 years ago
Leo Chen
c1b009b4be
[script] upload wallet to pub repo
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
3e31c8ddb2
[node] fix cli parameter and enable pass checking by default
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
6b5d01d38e
[wallet] fix bug of empty passphrase
...
add export command to export the key
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
109922c9b2
[wallet] use dns name for rpc servers
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
f1fb9291ff
Fix confusing naming
...
(I got confused myself...)
6 years ago
Richard Liu
8a5a6753cd
update deploy.sh for duration ( #883 )
...
* update deploy.sh for duration
* enable sync by default
6 years ago
Eugene Kim
0782151f75
Disable block hash caching
...
Our consensus differ from Ethereum's: The proposed block header is
incomplete until the preparer/committer bitmaps and signatures are
known, where Ethereum's proposed block is already immutable. Ethereum
code calls, especially from validator logic, block.Hash() liberally
without ill effect, but in our case the validation logic is called
before the finalization of committer bitmap, and the block.Hash() calls
embedded in the validation fixates and finalizes the block hash
prematurely.
Until we have a better logic to deal with this, disable block hash
caching, and always recompute the block hash using the actual header.
6 years ago
Leo Chen
968daeb12f
[wallet] ask for passphrase twice ( #881 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
chao
7cd24dae6c
modify the naming of variables to make code cleaner
...
address pr comments
6 years ago
chao
69cfe9b633
* add view changing logic
...
* add view change message handler
* modify view change message constructor
6 years ago
chao
2ba6d2018b
* cleanup consensus codes
...
* add view change status variables
* add view change message constructor
6 years ago
Eugene Kim
a7ba9a1b67
Fix UTs after Minh's single-source-of-truth fix
6 years ago
Eugene Kim
171fa3d3c1
Log blocks added to the chain from InsertChain
...
This is so that every single one entering the chain is seen.
6 years ago
Eugene Kim
04ba5a3adf
Retrieve parent block by hash, not by number
...
Weird that only hash works; add a TODO.
6 years ago
Eugene Kim
e783c49d55
Don't assume the block has >=1 tx
...
Because we now allow empty blocks.
6 years ago
Eugene Kim
497bba1f77
Fix goimports
6 years ago
Eugene Kim
d43820a797
Fix test compile errors after lint
6 years ago
Eugene Kim
3c1e7ce5b3
Fix golint
6 years ago
Eugene Kim
539ac01635
Make the 10-second block period a named constant
6 years ago
Eugene Kim
6819355e54
Remove a few stale TODO comments
6 years ago
Eugene Kim
dc8e3d7b3b
Revert parameters to production values
6 years ago
Eugene Kim
2202782ab8
Add long-term feedback as TODOs
6 years ago
Eugene Kim
7445699909
More fixes/improvements
...
* Log the right shard number for wallet/getFreeToken
* Don't try to use empty commit bitmap from genesis block
* Fail hard if block reward or finalization fails
* Log the public key if message sig verification fails
* Extract and save chain state from received blocks in order to
eliminate deep tail recursion
* Properly deep copy chain config (previously ChainID was being shared
among chains)
* Eliminate chain use-before-init window in node.New()
* Save genesis epoch shard state in new blockchain database
* Do not check epoch of the received shard state message (temp
workaround – we should introduce the check elsewhere)
* Propose an empty block if no transactions have been received for 10
seconds
6 years ago
Eugene Kim
664c6c1513
A cumulative collection of fixes/improvements:
...
* Manage shard chains as first class citizen
* Bring core.BlockChain's read/write semantics cleaner
* Reimplement the block reward in terms of on-chain committee info, not
hardcoded genesis committee.
6 years ago
Eugene Kim
b75896f534
Make {Read,Write}ShardState take epoch number
...
Previously it was taking a block number/hash, which was untenable in the
long term facing the variable-length epoch logic for regular shards.
6 years ago
Eugene Kim
733ae18fd4
go mod tidy
6 years ago
Eugene Kim
9043ec6ddf
Add epoch block number storage
6 years ago
Eugene Kim
38b4faa6de
Add block logger
6 years ago
Eugene Kim
7c5c7bc3a6
[DEBUG] Log overall sync flow
6 years ago
Eugene Kim
fac1f3ca41
Remove unused GetShardStateByHash
6 years ago
Eugene Kim
ad10605263
Broadcast resharded state to all nodes
...
This is a temp hack until we fix beacon chain syncing.
6 years ago
Eugene Kim
c4338ad890
Remove ShardState and ShardStateHash from genesis
...
They now belong to epoch-last blocks.
6 years ago
Eugene Kim
cca34560b0
Reorg imports into stdlib–external–internal format
6 years ago
Eugene Kim
abdfb5e048
Add epoch block number storage in rawdb
6 years ago