From a66a63e8953537280d11a38d0d1692c029827645 Mon Sep 17 00:00:00 2001 From: positiveblue Date: Wed, 4 Jan 2023 13:59:01 -0800 Subject: [PATCH] fmt: run go fmt Since v1.19.0 `go fmt` also formats comments. This commit is only to ensure that `go fmt ./...` does not modify any of our commited files. --- clientdb/batch_snapshot.go | 39 +++++++++++++++++++------------------- poolscript/script.go | 9 +++++---- sidecar_acceptor.go | 15 ++++++++------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/clientdb/batch_snapshot.go b/clientdb/batch_snapshot.go index 4efe8dd..d9bd9b0 100644 --- a/clientdb/batch_snapshot.go +++ b/clientdb/batch_snapshot.go @@ -15,25 +15,26 @@ import ( ) // batch-snapshot-bucket -// | -// |-- batch-snapshot-pending-key: -// | -// |-- batch-snapshot-seq-bucket -// | | -// | |-- -// | | | -// | | |-- batch-snapshot-batch: -// | | -// | |-- -// | | | -// | ... ... -// | -// |-- batch-snapshot-batchid-index-bucket -// | -// |-- : -// |-- : -// | -// ... +// +// | +// |-- batch-snapshot-pending-key: +// | +// |-- batch-snapshot-seq-bucket +// | | +// | |-- +// | | | +// | | |-- batch-snapshot-batch: +// | | +// | |-- +// | | | +// | ... ... +// | +// |-- batch-snapshot-batchid-index-bucket +// | +// |-- : +// |-- : +// | +// ... var ( // batchSnapshotBucketKey is the top level bucket where we'll find // snapshot information about all batches we have participated in. diff --git a/poolscript/script.go b/poolscript/script.go index 3fe7392..c0696bf 100644 --- a/poolscript/script.go +++ b/poolscript/script.go @@ -275,10 +275,11 @@ func (r *RecoveryHelper) LocateAnyOutput(expiry uint32, // AccountScript returns the output script of an account on-chain. // // For version 0 (p2wsh) this returns the hash of the following script: -// OP_CHECKSIGVERIFY -// OP_CHECKSIG OP_IFDUP OP_NOTIF -// OP_CHECKLOCKTIMEVERIFY -// OP_ENDIF +// +// OP_CHECKSIGVERIFY +// OP_CHECKSIG OP_IFDUP OP_NOTIF +// OP_CHECKLOCKTIMEVERIFY +// OP_ENDIF // // For version 1 (p2tr) this returns the taproot key of a MuSig2 combined key // of the auctioneer's and trader's public keys as the internal key, tweaked diff --git a/sidecar_acceptor.go b/sidecar_acceptor.go index 9ead394..3625025 100644 --- a/sidecar_acceptor.go +++ b/sidecar_acceptor.go @@ -25,13 +25,14 @@ import ( // SidecarAcceptor is a type that is exclusively responsible for managing the // recipient's tasks of executing a sidecar channel. The two tasks are: -// 1. Verify a sidecar ticket and the offer contained within then add the -// recipient node information to the ticket so it can be returned to the -// sidecar provider. This is step 2/4 of the entire sidecar execution -// protocol. -// 2. Interact with the auction server and connect out to an asker's node in the -// right moment then accept the incoming channel. This is step 4/4 of the -// entire sidecar execution protocol. +// 1. Verify a sidecar ticket and the offer contained within then add the +// recipient node information to the ticket so it can be returned to the +// sidecar provider. This is step 2/4 of the entire sidecar execution +// protocol. +// 2. Interact with the auction server and connect out to an asker's node in the +// right moment then accept the incoming channel. This is step 4/4 of the +// entire sidecar execution protocol. +// // The code for these two tasks are kept separate from the default funding // manager to make it easier to extract a standalone sidecar acceptor client // later on. It also makes it easier to see what code would need to be re-