Skip to content

Commit 0e787de

Browse files
committed
Dev reward payout exception
1 parent 0f345dc commit 0e787de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

node/sync.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ func (d *Pegnetd) SyncBlock(ctx context.Context, tx *sql.Tx, height uint32) erro
430430
err := d.DevelopersPayouts(tx, fLog, height, dblock.Timestamp, DeveloperRewardAddreses)
431431
if err != nil {
432432
// something wrong happend during payout execution
433-
return err
433+
// We don't return error as it will stop synchronisation
434+
// we continue execution but skiping payout for this time
435+
fLog.WithFields(log.Fields{"section": "devReward", "reason": "developer reward"}).Tracef("something wrong happend during dev payout execution")
434436
}
435437
}
436438

0 commit comments

Comments
 (0)