Eugene Kim
413e5703a0
Make local leaders propose end-of-epoch if needed
6 years ago
Eugene Kim
8308c4d0ff
Verify non-beacon end-of-epoch proposal
...
It should equal the one in the master copy found on beacon chain, except
if the master table doesn't have the shard (shard disowned), the local
leader should acknowledge this and signal the end of the shard by having
a committee proposal with empty leader and zero members.
6 years ago
Eugene Kim
5e356054ab
Add GetLastBlockNumberFromEpoch
...
Given an epoch number, it returns the last block number for it.
Admittedly, this is a hack until we have adaptive epoch logic.
6 years ago
Eugene Kim
4cbc6ba048
Move ValidNewShardState to node level
...
This is because regular chain validation requires access to beacon
chain.
6 years ago
Eugene Kim
65df03bc9d
Add Epoch to block header
6 years ago
Eugene Kim
e02f4caade
Validate shard state in proposed blocks
...
For now, validators simply wait until the leader proposes something.
Going forward though, validators would have to deal with a leader
intentionally delaying resharding:
- A beacon leader should send resharding proposal as soon as DRand is
finished.
- A regular leader should send a local resharding proposal as soon as it
sees a master proposal from the beacon chain (received via syncing).
In both cases, there should be some sort of grace period to allow for a
short delay inserted by the leader's discretion (so that it can wait for
most nodes to catch up with DRand or beacon chain syncing).
6 years ago
Eugene Kim
abaef8725d
Tidy imports in stdlib-external-internal order
6 years ago
Eugene Kim
2fb4d1ba4c
Do not accept block proposal with bad shard state
6 years ago
Eugene Kim
d0d130bc4b
Make BlockVerifier return an error on failure
6 years ago
Eugene Kim
bca1e3522f
Verify proposed block contents
6 years ago
Eugene Kim
26c1f753cc
Replace post-consensus resharding with TODOs
6 years ago
Eugene Kim
3cb884e7e8
Propose resharding in epoch-last block on beaconchain
6 years ago
Eugene Kim
c04b94858d
Add ShardState
6 years ago
Eugene Kim
8a22ae1aca
Merge pull request #875 from harmony-ek/use_uint32_as_shard_id
...
Use uint32 as shard ID type instead of [4]byte
6 years ago
Eugene Kim
3f74e9fc91
Fix UT – the canonical RLP encoding does change
6 years ago
Eugene Kim
18bf30e6c8
Use uint32 as shard ID type instead of [4]byte
...
This does not change RLP encoding.
6 years ago
Eugene Kim
e80398a8f8
Merge pull request #873 from harmony-ek/split_block_bytes_into_annotated_fields
...
Split blockBytes into annotated fields
6 years ago
Eugene Kim
fcf7fb2363
Merge pull request #874 from harmony-ek/make_shard_state_comparable_recursively
...
Make shard state comparable recursively
6 years ago
Eugene Kim
7991a56519
goimports
6 years ago
Eugene Kim
efc57c47ed
Make ShardState comparable (recursively)
...
Rename existing CompareNodeID as CompareNodeIDByBLSKey to better reflect
what it does and to make room for the full node ID compare function.
6 years ago
Eugene Kim
828f2d0f41
Factor []NodeID type as NodeIDList
6 years ago
Eugene Kim
b245557d08
Split blockBytes into annotated fields
6 years ago
Minh Doan
ba9493859b
use single source of truth instead having is_leader truth in 2 objects
6 years ago
Leo Chen
73ffbeb39e
Merge pull request #844 from touhonoob/verbosity
...
[logging] add verbosity flag to bootnode, txgen, harmony cmd
6 years ago
Peter Chung
d9b8fe57ca
[logging] change default verbosity to 5 for jenkins test
6 years ago
Peter Chung
d157dd2730
[rpc] add hmy_setLogVerbosity
6 years ago
Peter Chung
b632fd277a
[logging] use GlogHandler as the base handler
6 years ago
Peter Chung
01f69f2e7a
[logging] add verbosity flag to bootnode, txgen, harmony cmd
6 years ago
Leo Chen
8bd2acd7ca
Merge pull request #845 from LeoHChen/foundational_node_keystore_support_1
...
Foundational node keystore support 1
6 years ago
Leo Chen
08ec289b09
[hmy] set staking account in node
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
5be4f91684
[staking] use account to sign Tx instead of privKey
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
22a8528c70
[service] passing StakingAccount to staking service
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
481edc9e4c
[node] add StakingAccount field in node
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
3865c075de
[keystore] add functions to unlock/signtx
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
f6b4b80ec9
[account] find the account based on account_index
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
cf084fab72
[keystore] add 404 test account keys
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
f520802473
[keystore] remove all private key from genesis accounts
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
854fb1006d
[keystore] add harmony keystore package
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
6c05424ee5
[utils] add a function to ask user for passphrase
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
eab04af9c9
[rpc] increase the offset of rpc port
...
The 10/20 offset will upset local test with more than 10 nodes being
launched.
The error I encountered is like:
panic: failed to listen on any addresses: [listen tcp4 0.0.0.0:9015: bind: address already in use]
goroutine 1 [running]:
github.com/harmony-one/harmony/p2p/host/hostv2.catchError(...)
/Users/leochen/work/go/src/github.com/harmony-one/harmony/p2p/host/hostv2/util.go:10
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
chaosma
b53d8fb5bf
pbft normal path ( #851 )
...
* PBFT view change framework added
* timeout class and pbft_log class added for view change
* consensus protocol worked under PBFT normal mode
6 years ago
Richard Liu
fe217ad2b7
more rpc APIs. ( #863 )
...
* added readme
* more RPC APIs
* update for comments; fix travis issues
* update auto-generated host_mock.go
6 years ago
Richard Liu
d4bc279d88
sendTx rpc ( #852 )
...
* separate files
* send tx
6 years ago
Eugene Kim
972ea71b17
Merge pull request #854 from harmony-ek/disable_stop_message_by_default
...
Remove STOP message
6 years ago
Eugene Kim
32040c0fe6
Remove STOP message; txgen doesn't send it anymore
6 years ago
Eugene Kim
7d26462b1b
Deploy nodes with -enable_stop for local test
6 years ago
Eugene Kim
4bb5efe802
Enable STOP message only with -enable_stop
...
The STOP message has always been only for testing, and should never be
honored on any network except in controlled, short-lived test networks.
6 years ago
alajko
8ae9307632
Merge pull request #853 from alajko/nclient
...
Change Client Interface
6 years ago
ak
1d8aa14bdd
Merge branch 'master' of github.com:harmony-one/harmony into nclient
6 years ago
alajko
3f6707a077
Merge pull request #849 from alajko/txfix
...
Fixing TXGen
6 years ago