mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
channeldb/graph: write max 80 sig len for nodes
This commit is contained in:
parent
5dcd2a4530
commit
3d7bbd6d72
@ -2839,6 +2839,12 @@ func putLightningNode(nodeBucket *bbolt.Bucket, aliasBucket *bbolt.Bucket,
|
||||
}
|
||||
}
|
||||
|
||||
sigLen := len(node.AuthSigBytes)
|
||||
if sigLen > 80 {
|
||||
return fmt.Errorf("max sig len allowed is 80, had %v",
|
||||
sigLen)
|
||||
}
|
||||
|
||||
err = wire.WriteVarBytes(&b, 0, node.AuthSigBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user