multi: replace FundingLocked related docs
This commit replaces `FundingLocked` found in docs using the following
command,
```shell
find . -name "*.go" -exec sed -i '' 's/FundingLocked/ChannelReady/g' {} \;
find . -name "*.go" -exec sed -i '' 's/FundingLock/ChannelReady/g' {} \;
```
This commit is contained in:
10 files changed
+34
-34
No files matched your search
@@ -8,9 +8,9 @@ import (
|
||||
"github.com/lightningnetwork/lnd/tlv"
|
||||
)
|
||||
|
||||
// FundingLocked is the message that both parties to a new channel creation
|
||||
// ChannelReady is the message that both parties to a new channel creation
|
||||
// send once they have observed the funding transaction being confirmed on the
|
||||
// blockchain. FundingLocked contains the signatures necessary for the channel
|
||||
// blockchain. ChannelReady contains the signatures necessary for the channel
|
||||
// participants to advertise the existence of the channel to the rest of the
|
||||
// network.
|
||||
type ChannelReady struct {
|
||||
@@ -33,7 +33,7 @@ type ChannelReady struct {
|
||||
ExtraData ExtraOpaqueData
|
||||
}
|
||||
|
||||
// NewFundingLocked creates a new FundingLocked message, populating it with the
|
||||
// NewChannelReady creates a new ChannelReady message, populating it with the
|
||||
// necessary IDs and revocation secret.
|
||||
func NewChannelReady(cid ChannelID, npcp *btcec.PublicKey) *ChannelReady {
|
||||
return &ChannelReady{
|
||||
@@ -43,12 +43,12 @@ func NewChannelReady(cid ChannelID, npcp *btcec.PublicKey) *ChannelReady {
|
||||
}
|
||||
}
|
||||
|
||||
// A compile time check to ensure FundingLocked implements the lnwire.Message
|
||||
// A compile time check to ensure ChannelReady implements the lnwire.Message
|
||||
// interface.
|
||||
var _ Message = (*ChannelReady)(nil)
|
||||
|
||||
// Decode deserializes the serialized FundingLocked message stored in the
|
||||
// passed io.Reader into the target FundingLocked using the deserialization
|
||||
// Decode deserializes the serialized ChannelReady message stored in the
|
||||
// passed io.Reader into the target ChannelReady using the deserialization
|
||||
// rules defined by the passed protocol version.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
@@ -80,7 +80,7 @@ func (c *ChannelReady) Decode(r io.Reader, pver uint32) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Encode serializes the target FundingLocked message into the passed io.Writer
|
||||
// Encode serializes the target ChannelReady message into the passed io.Writer
|
||||
// implementation. Serialization will observe the rules defined by the passed
|
||||
// protocol version.
|
||||
//
|
||||
@@ -107,7 +107,7 @@ func (c *ChannelReady) Encode(w *bytes.Buffer, pver uint32) error {
|
||||
}
|
||||
|
||||
// MsgType returns the uint32 code which uniquely identifies this message as a
|
||||
// FundingLocked message on the wire.
|
||||
// ChannelReady message on the wire.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (c *ChannelReady) MsgType() MessageType {
|
||||
|
||||
+1
-1
@@ -288,7 +288,7 @@ func FuzzFundingCreated(f *testing.F) {
|
||||
|
||||
func FuzzChannelReady(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
// Prefix with MsgFundingLocked.
|
||||
// Prefix with MsgChannelReady.
|
||||
data = prefixWithMsgType(data, MsgChannelReady)
|
||||
|
||||
// Pass the message into our general fuzz harness for wire
|
||||
|
||||
Reference in new issue
Block a user