Skip to content

Commit 46d64a3

Browse files
authored
Merge pull request #80 from renproject/feat/log-error-message
Print error message for invalid burn tx
2 parents af53648 + 916357b commit 46d64a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.1.12
22
- Update transaction if Darknodes return a "done" status
33
- Increase default unconfirmed transaction expiry to 14 days
4+
- Print the error message for invalid burn transactions
45

56
## 0.1.11
67
- Update to Darknode v0.2.22 to set the minimum mint/burn amount

watcher/watcher.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ func (watcher Watcher) watchLogShiftOuts(parent context.Context) {
9696

9797
// Send the ShiftOut tx to the resolver.
9898
params := watcher.shiftOutToParams(ref)
99-
watcher.resolver.SubmitTx(ctx, 0, &params, nil)
99+
response := watcher.resolver.SubmitTx(ctx, 0, &params, nil)
100+
if response.Error != nil{
101+
watcher.logger.Infof("invalid burn tx, err = %v", response.Error.Message)
102+
}
100103
}
101104
if err := iter.Error(); err != nil {
102105
watcher.logger.Errorf("[watcher] error iterating LogShiftOut events from=%v to=%v: %v", last, cur, err)

0 commit comments

Comments
 (0)