Minh Doan
3968110f4c
add back client support
6 years ago
Minh Doan
f0b630a6c1
add more objects to watch
6 years ago
Minh Doan
a73390d762
scan memsize every 10 second
6 years ago
Minh Doan
f77508ae84
clean up smart contract code
6 years ago
Rongjian Lan
16279258d0
Remove bls address util and sha256 hash
6 years ago
Minh Doan
0c906c03e3
remove smart contract lottery and puzzle
6 years ago
Leo Chen
7475e6119f
[pingpong] check the right number of peers before start consensus
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
69deb2ccaf
Re-enable archival mode
6 years ago
Richard Liu
1db7381d28
Ricl rpc ( #880 )
...
* added readme
* more RPC APIs
* update for comments; fix travis issues
* update auto-generated host_mock.go
* pubsub WIP
* WIP
* added hmy/backend.go
* update to support newBlockFilter
* fix golint
* update readme; add log in travis_checker.sh
* add APIs
* update deploy.sh for duration
* enable sync by default
* testing getFilterChange
* fix ten-oneshard.txt
* add support for bloom indexer
* minior
* update
* [protobuf] generate the pb.go files
Signed-off-by: Leo Chen <leo@harmony.one>
* undo parameters
* remove bloombits
* fix bloom9_test
* remove service.go
6 years ago
Minh Doan
aab186da2d
add new interface API calls from node.go
6 years ago
Minh Doan
a5d14e6c52
remove bad practice code and add tx
6 years ago
Eugene Kim
b6b1de9657
Do not panic upon out-of-range account index
...
Out-of-range account index (currently >= 200) translates into a shard ID
(>= 4) not found in the genesis table, so its genesis cannot be
initialized. Since this can be induced by misconfiguration, do not
panic but just crit out.
This error was seen during drum testnet launch.
6 years ago
chao
7cd24dae6c
modify the naming of variables to make code cleaner
...
address pr comments
6 years ago
Eugene Kim
6819355e54
Remove a few stale TODO comments
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
Minh Doan
ba9493859b
use single source of truth instead having is_leader truth in 2 objects
6 years ago
Leo Chen
481edc9e4c
[node] add StakingAccount field in node
...
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
d4bc279d88
sendTx rpc ( #852 )
...
* separate files
* send tx
6 years ago
Eugene Kim
32040c0fe6
Remove STOP message; txgen doesn't send it anymore
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
ak
96576ef0c5
working local txgen
6 years ago
Leo Chen
89ad5ef458
fix concurrent map write error #837
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
845a077f8a
Fix same user nonce issue
6 years ago
Rongjian Lan
ba8cb921b0
Deploy app contracts and rest api on all shards
6 years ago
Rongjian Lan
9cebe85490
Display pingpong message's effect
6 years ago
Rongjian Lan
1dbc15d7fb
Display pingpong message's effect
6 years ago
Minh Doan
cc32242962
add puzzle contract
...
smart contract integrate smart contract
add payout call and fix others
fix play contract call
6 years ago
Minh Doan
44355edebe
fix logic to add more free Token
6 years ago
Eugene Kim
c31759cfd5
Remove unused address field
6 years ago
Rongjian Lan
78323c11e3
Fix getFreeToken blocking issue
6 years ago
Rongjian Lan
a56150a8a2
Fix getFreeToken blocking issue
6 years ago
Rongjian Lan
86ab59d389
Finish up resharding
6 years ago
Rongjian Lan
c20cd8a8d4
resharding on new nodes
6 years ago
Leo Chen
1bc6f52d4a
[p2p] use beacon client topic as global topic
...
This is compatible with the current txgen, so it won't break the test.
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
chao
c4cf98cbc6
debug beacon sync not stable issue
6 years ago
Leo Chen
24a7922970
[p2p] use right client group for communication
...
each node will communicate in 3 pubsub topics:
* group, exchange the consensus group messages
* client, exchange the client messages, like transactions
* global, exchange global messages, like cross-shard tx, or communicate
with beacon chain (not enabled for now)
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
cd8f1cea8e
[cleanup] remove offline peer handler
...
In libp2p context, there is no easy way to detect offline peers, that's
why we have removed the offline peer handling for now.
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
9d11ed79d5
[sc] enable faucet for all shards
...
this is to enable wallet demo on testnet.
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
f6c1230d49
Reorg genesis block for normal shards
6 years ago
Rongjian Lan
4dd5039376
Add back missed code for last PR
6 years ago
Rongjian Lan
6044b76068
migrate bls identity from address to public key
...
Use shard info for committee pub keys rather than pong message
Make code backward compatible
6 years ago
Rongjian Lan
f72cb43b83
make 1+3 sharded network work locally with deploy.sh
6 years ago
chao
2c6292c40e
whole network can restart and resume from previous state
6 years ago
chao
1bedd7dc85
change archival node as a validator; it's more secure for archival node to validate before accept the blocks;
...
archival node now will make sure data is flushed and saved
6 years ago
chao
0d5dcfcae3
refactor state syncing; unify state sync and beacon sync (i.e. depends
...
on whether node needs to join consensus after fully synced)
6 years ago
Leo Chen
78bcab7356
[pong] actively sending pong message
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Minh Doan
da316a88b1
introduce new message.proto to support demo app.
6 years ago