mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-22 06:34:32 +00:00
13 lines
467 B
Go
13 lines
467 B
Go
package legacypool
|
|
|
|
import "errors"
|
|
|
|
// errNoActiveJournal is returned if a transaction is attempted to be inserted
|
|
// into the journal, but no such file is currently open.
|
|
var errNoActiveJournal = errors.New("no active journal")
|
|
|
|
// devNull is a WriteCloser that just discards anything written into it.
|
|
type devNull struct{}
|
|
|
|
func (*devNull) Write(p []byte) (n int, err error) { return len(p), nil }
|
|
func (*devNull) Close() error { return nil }
|