Skip to content

Commit bdae4fd

Browse files
committed
all: add some godoc synopsis comments
1 parent e813626 commit bdae4fd

File tree

24 files changed

+29
-13
lines changed

24 files changed

+29
-13
lines changed

accounts/account_manager.go

+6-10
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17-
/*
18-
19-
This abstracts part of a user's interaction with an account she controls.
20-
It's not an abstraction of core Ethereum accounts data type / logic -
21-
for that see the core processing code of blocks / txs.
22-
23-
Currently this is pretty much a passthrough to the KeyStore interface,
24-
and accounts persistence is derived from stored keys' addresses
25-
26-
*/
17+
// Package implements a private key management facility.
18+
//
19+
// This abstracts part of a user's interaction with an account she controls.
2720
package accounts
2821

22+
// Currently this is pretty much a passthrough to the KeyStore interface,
23+
// and accounts persistence is derived from stored keys' addresses
24+
2925
import (
3026
"crypto/ecdsa"
3127
crand "crypto/rand"

build/update-license.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ address for each author. See git-shortlog(1) for an explanation of the
1616
Please review the resulting diff to check whether the correct
1717
copyright assignments are performed.
1818
*/
19+
1920
package main
2021

2122
import (

cmd/bootnode/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17-
// Command bootnode runs a bootstrap node for the Discovery Protocol.
17+
// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
1818
package main
1919

2020
import (

cmd/disasm/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// disasm is a pretty-printer for EVM bytecode.
1718
package main
1819

1920
import (

cmd/ethtest/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// ethtest executes Ethereum JSON tests.
1718
package main
1819

1920
import (

cmd/evm/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// evm executes EVM code snippets.
1718
package main
1819

1920
import (

cmd/geth/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// geth is the official command-line client for Ethereum.
1718
package main
1819

1920
import (

cmd/utils/cmd.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package utils contains internal helper functions for go-ethereum commands.
1718
package utils
1819

1920
import (

common/bytes.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package common contains various helper functions.
1718
package common
1819

1920
import (

compression/rle/read_write.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package rle implements the run-length encoding used for Ethereum data.
1718
package rle
1819

1920
import (

core/chain_manager.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package core implements the Ethereum consensus protocol.
1718
package core
1819

1920
import (

core/state/statedb.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package state provides a caching layer atop the Ethereum state trie.
1718
package state
1819

1920
import (

core/types/block.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package types contains data types related to Ethereum consensus.
1718
package types
1819

1920
import (

core/vm/vm.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package vm implements the Ethereum Virtual Machine.
1718
package vm
1819

1920
import (

eth/backend.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package eth implements the Ethereum protocol.
1718
package eth
1819

1920
import (

event/filter/filter.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package filter implements event filters.
1718
package filter
1819

1920
import "reflect"

jsre/jsre.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package jsre provides execution environment for JavaScript.
1718
package jsre
1819

1920
import (

miner/miner.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package miner implements Ethereum block creation and mining.
1718
package miner
1819

1920
import (

p2p/nat/nat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17-
// Package nat provides access to common port mapping protocols.
17+
// Package nat provides access to common network port mapping protocols.
1818
package nat
1919

2020
import (

p2p/server.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package p2p implements the Ethereum p2p network protocols.
1718
package p2p
1819

1920
import (

rpc/xeth.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package rpc implements the Ethereum JSON-RPC API.
1718
package rpc
1819

1920
import (

tests/init.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package tests implements execution of Ethereum JSON tests.
1718
package tests
1819

1920
import (

trie/trie.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// Package trie implements Merkle Patricia Tries.
1718
package trie
1819

1920
import (

xeth/xeth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

17-
// eXtended ETHereum
17+
// Package xeth is the interface to all Ethereum functionality.
1818
package xeth
1919

2020
import (

0 commit comments

Comments
 (0)