Felix Lange
35e8308bf7
eth, les: shorten genesis block mismatch error message
8 years ago
Felix Lange
d0eba23af3
all: disable log message colors outside of geth
...
Also tweak behaviour so colors are only enabled when stderr is a terminal.
8 years ago
Péter Szilágyi
d4fd06c3dc
all: blidly swap out glog to our log15, logs need rework
8 years ago
Péter Szilágyi
18c77744ff
all: fix spelling errors
8 years ago
Felix Lange
35a7dcb162
all: gofmt -w -s
8 years ago
Péter Szilágyi
0ef327bbee
core, eth, internal, miner: optimize txpool for quick ops
8 years ago
Felix Lange
016007bd25
eth, eth/downloader, eth/fetcher: delete eth/61 code
...
The eth/61 protocol was disabled in #2776 , this commit removes its
message handlers and hash-chain sync logic.
8 years ago
Péter Szilágyi
32559ccad1
eth: don't accept transactions until we sync up with the network
9 years ago
Felix Lange
6fdd0893c3
all: fix go vet warnings
9 years ago
Felix Lange
85e6c40c00
accounts, crypto: move keystore to package accounts
...
The account management API was originally implemented as a thin layer
around crypto.KeyStore, on the grounds that several kinds of key stores
would be implemented later on. It turns out that this won't happen so
KeyStore is a superflous abstraction.
In this commit crypto.KeyStore and everything related to it moves to
package accounts and is unexported.
9 years ago
Péter Szilágyi
aa0538db0b
eth: clean out light node notions from eth
9 years ago
Péter Szilágyi
92f9a3e5fa
cmd, eth: support switching client modes of operation
9 years ago
Jeffrey Wilcke
7c7692933c
cmd/geth, cmd/utils, core, rpc: renamed to blockchain
...
* Renamed ChainManager to BlockChain
* Checkpointing is no longer required and never really properly worked
when the state was corrupted.
9 years ago
Péter Szilágyi
ca88e18f59
eth: kill off protocol eth/60 in preparation for eth/62
9 years ago
Péter Szilágyi
42f44dda54
eth, eth/downloader: handle header requests, table driven proto tests
9 years ago
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
9 years ago
Jeffrey Wilcke
036e6301af
cmd/geth, core, eth: Version 1.0.0
...
Genesis release. Closes #1402
Conflicts:
cmd/geth/main.go
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Jeffrey Wilcke
a32c51effd
cmd, core, eth, common: genesis preparation
...
Implemented the --genesis flag thru which we can set a custom genesis
block, including the official Ethereum genesis block.
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Jeffrey Wilcke
29e2fb38f8
core, miner: miner header validation, transaction & receipt writing
...
* Miners do now verify their own header, not their state.
* Changed old putTx and putReceipts to be exported
* Moved writing of transactions and receipts out of the block processer
in to the chain manager. Closes #1386
* Miner post ChainHeadEvent & ChainEvent. Closes #1388
9 years ago
Péter Szilágyi
aac2b6ae4c
eth: add the blocks from numbers protocol message
9 years ago
Péter Szilágyi
6fc85f1ec2
eth: clean up peer struct a bit, fix double txn bcast
9 years ago
Felix Lange
654564e164
core/types: make transactions immutable
9 years ago
Péter Szilágyi
90d45f0397
eth: fix test breakage from the previous commit
10 years ago
Péter Szilágyi
faae8b7dd8
eth: fix an accidental test compile error
10 years ago
Felix Lange
2c24a73e25
eth: add protocol tests
...
The protocol tests were commented out when eth/downloader was introduced.
10 years ago
obscuren
50e096e627
downloader: don't remove peers. keep them around
10 years ago
obscuren
688d118c7e
Updated logging
10 years ago
zelig
f56fc9cd9d
change StatusMsgData.TD back to pointer type *big.Int
10 years ago
zelig
6ffea34d8b
check TxMsg
...
- add validation on TxMsg checking for nil
- add test for nil transaction
- add test for zero value transaction (no extra validation needed)
10 years ago
zelig
82da6bf4d2
test for invalid rlp encoding of block in BlocksMsg
...
- rename Validate -> ValidateFields not to confure consensus block validation
- add nil transaction and nil uncle header validation
- remove bigint field checks: rlp already decodes *big.Int to big.NewInt(0)
- add test for nil header, nil transaction
10 years ago
zelig
d677190f39
add tests for valid blocks msg handling
10 years ago
zelig
e1be34bce1
eth: SEC-29 eth wire protocol decoding invalid message data crashes client
...
- add validate method to types.Block
- validate after Decode -> error
- add tests for NewBlockMsg
10 years ago
zelig
391e89d70a
use own total difficulty to limit best peer
...
- update blockpool td by subscribing to ChainHeadEvent
- if ahead of best peer, demote it
- addPeer now take own td as current td
- removePeer now take own td as current td
- add relevant tests to peers_test
- eth: backend now calls blockpool with eth.eventMux and chainManager.Td
10 years ago
Felix Lange
e80dda6051
eth, whisper: adapt for RLP encoder switch in package p2p
...
I have rewritten the protocol test to use p2p.MsgPipe because
p2p.NewMsg is gone.
10 years ago
zelig
ca8d184173
fix eth tests
10 years ago
zelig
b6aa88c099
private network support
...
- protocolversion, networkid global int flags to cli and mist
- fix bug with protocolversion check using wrong db
- log protocolversion & networkid in backend
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
Taylor Gerring
fca652eeea
Fix logger import path
10 years ago
obscuren
22b493a6ff
Fixed tests
10 years ago
Taylor Gerring
a75af474f7
Fix logger import in tests
10 years ago
zelig
16ecda951b
integrate blockpool into eth
...
- remove blockpool code
- remove blockpool integration test (kinda embarrassing)
- remove errors.go
10 years ago
Felix Lange
56f777b2fc
cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p API
10 years ago
obscuren
57f95c1dc7
fixed test
10 years ago
Felix Lange
eb0e7b1b81
eth, p2p: remove EncodeMsg from p2p.MsgWriter
...
...and make it a top-level function instead.
The original idea behind having EncodeMsg in the interface was that
implementations might be able to encode RLP data to their underlying
writer directly instead of buffering the encoded data. The encoder
will buffer anyway, so that doesn't matter anymore.
Given the recent problems with EncodeMsg (copy-pasted implementation
bug) I'd rather implement once, correctly.
10 years ago
obscuren
6abf8ef78f
Merge
10 years ago
zelig
2dd8f41147
eth protocol changes
...
- changed backend interface
- using callbacks for blockPool
- use rlp stream for lazy decoding
- use peer as logger
- add id (peer pubkey) to ethProtocol fields
- add testPeer to protocol test (temporary)
10 years ago
zelig
0add0c400f
initial commit for eth-p2p integration
10 years ago