Signed-off-by: welfuture <[email protected]>
@@ -187,7 +187,7 @@ type signature struct {
R, S *big.Int
}
-// marhalSignature returns ASN.1 encoded bytes for the given integers,
+// marshalSignature returns ASN.1 encoded bytes for the given integers,
// suitable for PEM encoding.
func marshalSignature(r, s *big.Int) ([]byte, error) {
sig := signature{
@@ -43,7 +43,7 @@ func (pg *PeerGater) Enabled() bool {
return pg.enabled
-// Disables turn off the peer gating mechanism
+// Disable turn off the peer gating mechanism
func (pg *PeerGater) Disable() {
pg.Lock()
defer pg.Unlock()
@@ -286,7 +286,7 @@ func connectionWorker(
-// redirects packets from the interface to the node using the routing table in the blockchain
+// readPackets packets from the interface to the node using the routing table in the blockchain
func readPackets(ctx context.Context, mgr streamManager, c *Config, n *node.Node, ledger *blockchain.Ledger, ifce *water.Interface, nc node.Config) error {
ip, _, err := net.ParseCIDR(c.InterfaceAddress)
if err != nil {