Skip to content

Commit

Permalink
fix the bug in the fix for the bug in #20
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Dec 12, 2021
1 parent 05687e8 commit fc5c046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func WriteBlockDB(blks ...*Block) {
panic(err)
//return err
}
if v.Tx.Sender == v.Tx.Receiver {
if v.Tx.Sender != "" && v.Tx.Sender == v.Tx.Receiver {
// don't need to do anything
} else if v.Tx.Amount > 0 {
// no reward for solver so we can give that reward to the lnodes (TODO).
Expand Down

0 comments on commit fc5c046

Please sign in to comment.