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)
|
err = wire.WriteVarBytes(&b, 0, node.AuthSigBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user