Edgar Aroutiounian
c2f089f618
[node] Throttle acceptance of incoming messages ( #2970 )
...
* [node] Throttle acceptance of incoming messages
* [p2p] Add sampled logger
* [go.mod] Bump libs
* [p2p][node] More sampled logs
* [p2p] Disable auto relay, force public reachability, fix bandwidth reporter, enable NAT service
* [p2p] Turn off some options
* [node] Remove noisy and incorrect impl p2p log
* [node] Sample bump to 24 second
* [p2p] Remove linger of metric
* [consenus] Fix race condition
* [consensus] Race condition for grace period
* [node] Less noisy closure
* [node] Less noisy closure
* [node] Bump context timeout on message, explicit cancel of context
* [node] Cost back to 1 when reach threshold back of being fine
* [node] Sync race condition
* [node] toStart buf chan 1
* [p2p] Turn options on again
* [node][p2p] Lower throttle point for test, remove noisy log, make time delay throttle small
* [consensus] Fix nil pointer
* [node] Remove noisy log, increase infrequency of Burst topic log
* [blockchain] Nil pointer check
* [node] Fix threshold, lessen log
* [node] Bump throttle
* [node] Nil to verify new block
* [node] Keep threshold at half
5 years ago
Edgar Aroutiounian
2836f0f620
[project] Remove over complicated packages, useless tests, dead functions ( #2780 )
...
* [project] Dead test
* [node] If fields always same, then just use the constant
* [project] Remove overcomplicated ctxerror
* [project] Remove more dead tests, adjust error replacing ctxerror
* [project] More dead tests, fix travis complaint on Errorf
* [node.sh] Remove is-genesis
5 years ago
Leo Chen
6ca2d8fc64
Revert "Merge pull request #2184 from rlan35/s3"
...
This reverts commit 5f114872ce
, reversing
changes made to b4ddb94b91
.
5 years ago
Leo Chen
28cb1e809a
Revert "Merge pull request #2202 from rlan35/s3"
...
This reverts commit 2cfc6d074d
, reversing
changes made to 5f114872ce
.
5 years ago
Rongjian Lan
25b2b5fd9e
Fix the one-off beacon bad block fully ( #2191 )
...
* update testnet epochs
* Fix the one-off error fully
* Add const for the bad block num
5 years ago
Edgar Aroutiounian
cae94683a4
[state][staking][availability] Handle availability only in finalize ( #2185 )
5 years ago
Rongjian Lan
d98267c113
Add one-off block verification rule for beacon chain bad block ( #2180 )
...
* Add one-off block verification rule for beacon chain bad block
* Add more comment
5 years ago
Rongjian Lan
55664be681
Add the cross-shard fixes from s3 into master ( #2105 )
...
* Add missing file
* Fix cx receipt merkle root computation
* Fix epoch check on cx receipt sanity check
* Fix go gen
* fix log mistake
* Return EmptyRootHash if there is no receipts
* Add back legacy merkle root logic and accept both for verification
* Add missing emptyroothash logic
* fix lint
* Fix lint
* Revert proto change
5 years ago
Edgar Aroutiounian
b216666de1
[security] Audit fixes ( #2051 )
...
* [txn-pool] Limit size of pending staking transactions pool
* [node][cross-txn] Add two sanity checks on incoming receipts before adding to pending map
* [node][cross-txn] Protect against DDoS of pending cx receipts map
* [node] Move pending staking txn limit size check to inside loop
* [node] Fix log message in incoming cx receipt
* [node] Add crypto verification for cx-proofs
5 years ago
Eugene Kim
43c9bb46fc
Validate CX receipt root from CrossTxEpoch
...
Previously, validation started at CrossTxEpoch+1 and CX receipts roots
were unverified in CrossTxEpoch, creating a security hole.
5 years ago
Eugene Kim
ef389aa9b5
IsCrossTx → AcceptsCrossTx
...
This clarifies the intended use of the predicate.
5 years ago
Edgar Aroutiounian
74a4dd0906
[block][staking] Add staking transaction as input to hash of merkle root ( #1928 )
5 years ago
Rongjian Lan
b240b7533d
Many small tweaks
5 years ago
Edgar Aroutiounian
9f00923ac3
Factor out quorum logic from consensus, undo prior consolidation of values under core ( #1717 )
...
* [consensus] Factor out enums to core/values, begin factor out of consensus mechanisms
* [consensus] Make Mechanism explicit
* [consensus] Add ViewChange to QuorumPhase
* Update core/values/consensus.go
Co-Authored-By: Eugene Kim <ek@harmony.one>
* Update core/values/consensus.go
Co-Authored-By: Eugene Kim <ek@harmony.one>
* [mainnet-release] Address code comments
* [staking][consensus][project] Remove txgen, factor out consensus
* [consensus] Factor out PublicKeys
* [txgen] Bring back txgen
* [project] Undo prior consolidation of error values under core
* [consensus] Update tests using quorum decider
* [consensus] Fix overlooked resets during refactor
* [consensus] Fix wrong check of quorum phase
* [consensus] Address leftover TODO for prepare count
* [consensus] Simplfy reset switch
* [consensus] Fix mistake of wrong ReadSignature in ViewChange, need sender, not node PubKey
5 years ago
Edgar Aroutiounian
97efce2766
Further progress on staking ( #1709 )
...
* [staking] Factor some project errors into values core/pkg. Thread stking Txs through Finalize
* [staking] Incorporate Chao code from PR 1700
* [staking] Remove dead staking code, create const values, factor out dec from staking
* [staking] Remove voting power for now till discussion, factor out more error values
5 years ago
chao
6321395731
fix cross shard verification error; need to recalculate shard state instead of retrieve for cx transaction receipt verification
5 years ago
chao
33aa47b9d3
fix cross shard verification error; need to recalculate shard state instead of retrieve for cx transaction receipt verification
5 years ago
Rongjian Lan
19b1c03888
Refactor shard state related func and avoid recomputing shard state unnecessarily
5 years ago
Rongjian Lan
8376c2a3a0
Add all cross-shard txn fork checks
5 years ago
Dennis Won
242f66a915
fixed cx txn with the change and added comments explanining the 3 differences between header.GetShardState vs core.GetShardState vs. chain.ReadShardState
5 years ago
Eugene Kim
c996f22f7a
Avoid fetching entire block to use just its header
5 years ago
Dennis Won
ade5978225
addressed chao's comment
5 years ago
Dennis Won
479c9ad60f
consolidate and use block validator functions properly
5 years ago
chao
39214def83
improve cross tx receipts verification to avoid beacon sync dependency
5 years ago
chao
65cdaf75bf
improve cross shard tx receipts verification design and logic
5 years ago
chao
c813fed369
refactoring block header signature verification
5 years ago
Eugene Kim
8cc2543c9e
Move header fields into private struct; expose them using getters/setters
...
Also introduce NewHeader and NewHeaderWith functions. The latter is
friendlier for create-and-initialize expressions, and can be used
in place of the old &Header{field: value, ...} syntax.
5 years ago
Rongjian Lan
892958a232
Add epoch-based forking
5 years ago
Rongjian Lan
2d51ba0ee2
Add CrossLink, EIP155, and S3 fork
5 years ago
Rongjian Lan
08e7375610
Migrate go-ethereum params into harmony/internal/params
5 years ago
Eugene Kim
30b63fc552
Revert "Merge pull request #1413 from rlan35/cross-shard-rj"
...
This reverts commit 511db7445f
, reversing
changes made to b4c9a3264a
.
5 years ago
Rongjian Lan
af6cb79db0
Add state sync sig validation and fix travis test
5 years ago
Rongjian Lan
f335e0bb78
Fix cross shard bad block issue
5 years ago
chao
2a8882eb90
wip
5 years ago
chao
0780a1c75a
add merkle proof generation/validation and cxreceipts message handler function
5 years ago
chao
02fb5cb7b2
add cxReceipt data type; add cxReceipt encode/decode; add logic wip
5 years ago
Rongjian Lan
84728cccb6
remove debug printout
6 years ago
Rongjian Lan
d2e9862b91
Fix coinbase bad block issue
6 years ago
Rongjian Lan
8fae634aba
Break tie of core-consensus-core import cycle; add pRnd channel for consensus
6 years ago
Eugene Kim
0ec8fa1548
Rename state.StateDB to state.DB ( #255 )
...
This fixes a golint “name stutter” warning.
6 years ago
Rongjian Lan
b7db989f00
Add simulated transactions generation in node_handler
6 years ago
Rongjian Lan
a9b47b07f7
Add simulated transactions generation in node_handler
6 years ago
Rongjian Lan
23e65a956c
Add evm support; Import state and trie object
6 years ago
Leo Chen
2a602db9b0
fix the build after rename the repo to harmony-one
...
[TEST]
$ ./go_executable_build.sh
Harmony (C) 2018. benchmark, version v1174-23ace87 (ec2-user@ 2018-11-15T12:07:48+0000)
Harmony (C) 2018. txgen, version v1174-23ace87 (ec2-user@ 2018-11-15T12:07:48+0000)
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
c64f2dbd44
Integrate eth code into harmony with a simple main entry point
6 years ago
Rongjian Lan
bb776e9f95
Add state processing and evm
6 years ago