Commit 7647f98b authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update

parent 078bc23b
...@@ -8,7 +8,7 @@ api-listen = "0.0.0.0:20012" ...@@ -8,7 +8,7 @@ api-listen = "0.0.0.0:20012"
private-key = "529f4efb80ac534f17d873104c71881c0970dbd5a886f183f63c5c6bb7a1fcd9" private-key = "529f4efb80ac534f17d873104c71881c0970dbd5a886f183f63c5c6bb7a1fcd9"
chain-rpc = "https://dev.rpc.agicoin.ai" chain-rpc = "https://dev.rpc.aonet.ai"
store-contract = "0xA0ec84eCa14CD23afD5D7ba973390E83F0Cbe89A" store-contract = "0xA0ec84eCa14CD23afD5D7ba973390E83F0Cbe89A"
......
...@@ -275,7 +275,7 @@ func (v *Validator) SealProof(miner common.Address, proof *validatorv1.Validated ...@@ -275,7 +275,7 @@ func (v *Validator) SealProof(miner common.Address, proof *validatorv1.Validated
return err return err
} }
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"miner": miner.Hex(), "miner": minerObject.Miner,
"old_balance": oldBalance, "old_balance": oldBalance,
"new_balance": minerObject.Balance, "new_balance": minerObject.Balance,
}).Info("seal proof") }).Info("seal proof")
...@@ -288,6 +288,7 @@ func (v *Validator) RefreshPendingProof() (proof map[common.Address]*validatorv1 ...@@ -288,6 +288,7 @@ func (v *Validator) RefreshPendingProof() (proof map[common.Address]*validatorv1
proof = make(map[common.Address]*validatorv1.ValidatedProof) proof = make(map[common.Address]*validatorv1.ValidatedProof)
for timestamp, pendingProofMap := range v.pendingProof { for timestamp, pendingProofMap := range v.pendingProof {
if timestamp != v.todayTimestamp() { if timestamp != v.todayTimestamp() {
// todo syncjob模式下需适配
continue continue
} }
for miner, pendingProof := range pendingProofMap { for miner, pendingProof := range pendingProofMap {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment