Commit 23a628b6 authored by refcell's avatar refcell Committed by GitHub

feat(op-dispute-mon): Log Lost Bond Amount (#10371)

* feat: log bond amount in dispute mon honest actor loss

* Update op-dispute-mon/mon/claims.go
Co-authored-by: default avatarcoderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------
Co-authored-by: default avatarcoderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 2bb23ffc
...@@ -68,7 +68,7 @@ func (c *ClaimMonitor) checkUpdateHonestActorStats(proxy common.Address, claim * ...@@ -68,7 +68,7 @@ func (c *ClaimMonitor) checkUpdateHonestActorStats(proxy common.Address, claim *
if claim.CounteredBy != (common.Address{}) { if claim.CounteredBy != (common.Address{}) {
honest[actor].InvalidClaimCount++ honest[actor].InvalidClaimCount++
honest[actor].LostBonds = new(big.Int).Add(honest[actor].LostBonds, claim.Bond) honest[actor].LostBonds = new(big.Int).Add(honest[actor].LostBonds, claim.Bond)
c.logger.Error("Claim resolved against honest actor", "game", proxy, "honest_actor", actor, "countered_by", claim.CounteredBy, "claim_contract_index", claim.ContractIndex) c.logger.Error("Claim resolved against honest actor", "game", proxy, "honestActor", actor, "counteredBy", claim.CounteredBy, "claimContractIndex", claim.ContractIndex, "bondAmount", claim.Bond)
} else { } else {
honest[actor].ValidClaimCount++ honest[actor].ValidClaimCount++
// Note that we don't count refunded bonds as won // Note that we don't count refunded bonds as won
......
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