Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
add table penalty_bases.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed May 8, 2020
1 parent d2ddbf3 commit 578f4e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,16 @@ ON CONFLICT (name) DO UPDATE SET val=:val, intval=:intval, blobval=:blobval
return
}

if err := copyRows(pgx, "penalty_bases", struct {
ChannelId int64 `db:"channel_id"`
CommitNum int64 `db:"commitnum"`
Txid sqlblob `db:"txid"`
OutNum int `db:"outnum"`
Amount int64 `db:"amount"`
}{}, "channel_id, commitnum"); err != nil {
return
}

// update sequences
if err := setSequence("channel_configs_id_seq"); err != nil {
return
Expand Down

0 comments on commit 578f4e5

Please sign in to comment.