Commit Graph

363 Commits (main)

Author SHA1 Message Date
Edgar Aroutiounian f828ef67b3 [reward] Write to cache only after write to db 5 years ago
Edgar Aroutiounian 7e83017fca [reward] UpdateBlockReward does not need cache usage 5 years ago
Edgar Aroutiounian 575b0867d0 [reward] Put into cache fast 5 years ago
Edgar Aroutiounian a4b3ba33d9 [reward] Use cache proper 5 years ago
Edgar Aroutiounian 2dad5528d6 [reward] Stub out db for in-memory cache 5 years ago
Edgar Aroutiounian 4427b2a805 [reward] Since have invariant on reward payout != nil, remove != nil check 5 years ago
Edgar Aroutiounian 06ca582f16 [reward] Do need Update for accumulator 5 years ago
Edgar Aroutiounian c30886b1d4 [reward] Do not update state in reward, thread through payout, write payout on each block 5 years ago
Rongjian Lan 108d01f730 Fix cross link verification and change batch size to 50 5 years ago
Chao Ma a8a977e88c add getECDSAFromCoinbase for leader reward 5 years ago
Rongjian Lan 67f5100e5b Make sure crosslink is verified before proposal 5 years ago
Rongjian Lan f59469b644 Add epoch number in shard state for use of beacon epoch sync 5 years ago
Rongjian Lan 2fd836710f Fix comments 5 years ago
Rongjian Lan 8ae487b7cb Remove txn log 5 years ago
Rongjian Lan 3490c28d74 Add more log 5 years ago
Rongjian Lan 0cf208ce8b Add more log 5 years ago
Rongjian Lan f67c936ab9 Add more log in bad block 5 years ago
Rongjian Lan 3f5eef034d Fix beacon sync rollback bug 5 years ago
Rongjian Lan b240b7533d Many small tweaks 5 years ago
Chao Ma f0f3f201ae deduplicate pending crosslinks when write to local db 5 years ago
Edgar Aroutiounian 35d22ce116
[reward] Add Accumulator of rewards in DB (#1888) 5 years ago
Rongjian Lan b177e00714 move stats account in the correct place 5 years ago
Chao Ma 06940237c1 make DeleteCommittedCrossLinksFromPending faster; fix ContinuesCrossLink bug 5 years ago
chao 338720b2eb fix epoch reading bug; return error in block crosslink verification if crosslink exists; only remove committed crosslink from pending list 5 years ago
chao 3d6e661a5c address comments/issues for crosslinks 5 years ago
Rongjian Lan 1a5757b249 Add full block reward integration; fix staking index bug; add staking txn signer check (#1889) 5 years ago
chao fd9fe64129 add local cache and storage for pending crosslinks 5 years ago
Edgar Aroutiounian aaf289c070
[shard] Wrapper on decoding ShardState (#1886) 5 years ago
chao 87dd2cd2cd Simplified CrossLink structure; 5 years ago
Rongjian Lan 8c4734a319 fix a corner case bug for staking epoch catch up 5 years ago
Rongjian Lan d5cdd62c52 Fix lint 5 years ago
Rongjian Lan 34dcb28bac Remove local code 5 years ago
Rongjian Lan c6e0fc68fa Add voting power and effective stake into RPC 5 years ago
Rongjian Lan e79ba5fe88 Make shard chain follow beacon chain's epoch after stakingEpoch 5 years ago
Rongjian Lan 9070421462 Refactor shard compute logic and make local test friendly for staking 5 years ago
Rongjian Lan b1a6c77f6b Remove unncessary api 5 years ago
Rongjian Lan 1049bd5f24 More clear up and fixes 5 years ago
Rongjian Lan bad9c62922 Bug fixes 5 years ago
Rongjian Lan 87eefb8bcc Remove prints 5 years ago
Rongjian Lan f3927bd465 Add uptime stats 5 years ago
Rongjian Lan a2bde5651b Avoid memory waste 5 years ago
Rongjian Lan 07cc574f34 Return early if found delegation 5 years ago
Rongjian Lan c16ededa3e Add delegation index to avoid looping through all delegations 5 years ago
Rongjian Lan 9cd994ecf2 Add more staking RPCs 5 years ago
Edgar Aroutiounian e3802cd31b [slashing][reward][committee] Begin wrap up for merge with master, focus on rewards 5 years ago
Rongjian Lan bde9d38ed1 Add missing staking related core code; and add some basic rpcs 5 years ago
Rongjian Lan 77ff9d422d test code 5 years ago
Rongjian Lan b856049aad Create snapshot for all validators 5 years ago
Rongjian Lan 59059f4b46 Fix active validator DB api 5 years ago
Rongjian Lan 901785269b fix lint 5 years ago