multi: fix spelling mistakes
This commit is contained in:
22 files changed
+25
-25
No files matched your search
@@ -125,7 +125,7 @@ type Config struct {
|
||||
// until MaxBackoff.
|
||||
MinBackoff time.Duration
|
||||
|
||||
// MaxBackoff defines the maximum backoff applied to conenctions with
|
||||
// MaxBackoff defines the maximum backoff applied to connections with
|
||||
// watchtowers. If the exponential backoff produces a timeout greater
|
||||
// than this value, the backoff will be clamped to MaxBackoff.
|
||||
MaxBackoff time.Duration
|
||||
|
||||
@@ -29,7 +29,7 @@ var (
|
||||
ErrFailedNegotiation = errors.New("session negotiation unsuccessful")
|
||||
|
||||
// ErrUnregisteredChannel signals that the client was unable to backup a
|
||||
// revoked state becuase the channel had not been previously registered
|
||||
// revoked state because the channel had not been previously registered
|
||||
// with the client.
|
||||
ErrUnregisteredChannel = errors.New("channel is not registered")
|
||||
)
|
||||
@@ -80,7 +80,7 @@ type NegotiatorConfig struct {
|
||||
|
||||
// MaxBackoff defines the maximum backoff applied by the session
|
||||
// negotiator after all tower candidates have been exhausted and
|
||||
// reattempting negotation with the same set of candidates. If the
|
||||
// reattempting negotiation with the same set of candidates. If the
|
||||
// exponential backoff produces a timeout greater than this value, the
|
||||
// backoff duration will be clamped to MaxBackoff.
|
||||
MaxBackoff time.Duration
|
||||
@@ -218,7 +218,7 @@ func (n *sessionNegotiator) negotiationDispatcher() {
|
||||
// and attempting to negotiate a new session until a successful negotiation
|
||||
// occurs. If the candidate iterator becomes exhausted because none were
|
||||
// successful, this method will back off exponentially up to the configured max
|
||||
// backoff. This method will continue trying until a negotiation is succesful
|
||||
// backoff. This method will continue trying until a negotiation is successful
|
||||
// before returning the negotiated session to the dispatcher via the succeed
|
||||
// channel.
|
||||
//
|
||||
|
||||
@@ -116,6 +116,6 @@ type CommittedUpdate struct {
|
||||
|
||||
// EncryptedBlob is a ciphertext containing the sweep information for
|
||||
// exacting justice if the commitment transaction matching the breach
|
||||
// hint is braodcast.
|
||||
// hint is broadcast.
|
||||
EncryptedBlob []byte
|
||||
}
|
||||
@@ -20,7 +20,7 @@ type SessionStateUpdate struct {
|
||||
|
||||
// EncryptedBlob is a ciphertext containing the sweep information for
|
||||
// exacting justice if the commitment transaction matching the breach
|
||||
// hint is braodcast.
|
||||
// hint is broadcast.
|
||||
EncryptedBlob []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ func (p *Policy) ComputeAltruistOutput(totalAmt btcutil.Amount,
|
||||
|
||||
// ComputeRewardOutputs splits the total funds in a breaching commitment
|
||||
// transaction between the victim and the tower, according to the sweep fee rate
|
||||
// and reward rate. The reward to he tower is substracted first, before
|
||||
// and reward rate. The reward to he tower is subtracted first, before
|
||||
// splitting the remaining balance amongst the victim and fees.
|
||||
func (p *Policy) ComputeRewardOutputs(totalAmt btcutil.Amount,
|
||||
txWeight int64) (btcutil.Amount, btcutil.Amount, error) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import "io"
|
||||
|
||||
// Error is a generic error message that can be sent to a client if a request
|
||||
// fails outside of prescribed protocol errors. Typically this would be followed
|
||||
// by the server disconnecting the client, and so can be useful to transfering
|
||||
// by the server disconnecting the client, and so can be useful to transferring
|
||||
// the exact reason.
|
||||
type Error struct {
|
||||
// Code specifies the error code encountered by the server.
|
||||
|
||||
Reference in new issue
Block a user