|
4 | 4 | "bytes"
|
5 | 5 | "fmt"
|
6 | 6 |
|
7 |
| - "github.com/mit-dci/lit/crypto/koblitz" |
8 | 7 | "github.com/mit-dci/lit/btcutil/txscript"
|
| 8 | + "github.com/mit-dci/lit/crypto/koblitz" |
9 | 9 | "github.com/mit-dci/lit/lnutil"
|
10 | 10 | "github.com/mit-dci/lit/logging"
|
11 | 11 | "github.com/mit-dci/lit/sig64"
|
@@ -205,10 +205,10 @@ func (nd *LitNode) SignState(q *Qchan) ([64]byte, [][64]byte, error) {
|
205 | 205 | return sig, nil, err
|
206 | 206 | }
|
207 | 207 |
|
208 |
| - fmt.Printf("____ sig creation for channel (%d,%d):\n", q.Peer(), q.Idx()) |
209 |
| - fmt.Printf("\tinput %s\n", commitmentTx.TxIn[0].PreviousOutPoint.String()) |
| 208 | + logging.Infof("____ sig creation for channel (%d,%d):\n", q.Peer(), q.Idx()) |
| 209 | + logging.Infof("\tinput %s\n", commitmentTx.TxIn[0].PreviousOutPoint.String()) |
210 | 210 | for i, txout := range commitmentTx.TxOut {
|
211 |
| - fmt.Printf("\toutput %d: %x %d\n", i, txout.PkScript, txout.Value) |
| 211 | + logging.Infof("\toutput %d: %x %d\n", i, txout.PkScript, txout.Value) |
212 | 212 | }
|
213 | 213 |
|
214 | 214 | logging.Infof("\tstate %d myamt: %d theiramt: %d\n", q.State.StateIdx, q.State.MyAmt, q.Value-q.State.MyAmt)
|
@@ -354,10 +354,10 @@ func (q *Qchan) VerifySigs(sig [64]byte, HTLCSigs [][64]byte) error {
|
354 | 354 | if err != nil {
|
355 | 355 | return err
|
356 | 356 | }
|
357 |
| - fmt.Printf("____ sig verification for channel (%d,%d):\n", q.Peer(), q.Idx()) |
358 |
| - fmt.Printf("\tinput %s\n", commitmentTx.TxIn[0].PreviousOutPoint.String()) |
| 357 | + logging.Infof("____ sig verification for channel (%d,%d):\n", q.Peer(), q.Idx()) |
| 358 | + logging.Infof("\tinput %s\n", commitmentTx.TxIn[0].PreviousOutPoint.String()) |
359 | 359 | for i, txout := range commitmentTx.TxOut {
|
360 |
| - fmt.Printf("\toutput %d: %x %d\n", i, txout.PkScript, txout.Value) |
| 360 | + logging.Infof("\toutput %d: %x %d\n", i, txout.PkScript, txout.Value) |
361 | 361 | }
|
362 | 362 | logging.Infof("\tstate %d myamt: %d theiramt: %d\n", q.State.StateIdx, q.State.MyAmt, q.Value-q.State.MyAmt)
|
363 | 363 | logging.Infof("\tsig: %x\n", sig)
|
|
0 commit comments