Péter Szilágyi
0095531a58
core, eth, les: fix messy code ( #15367 )
...
* core, eth, les: fix messy code
* les: fixed tx status test and rlp encoding
* core: add a workaround for light sync
7 years ago
Felföldi Zsolt
ca376ead88
les, light: LES/2 protocol version ( #14970 )
...
This PR implements the new LES protocol version extensions:
* new and more efficient Merkle proofs reply format (when replying to
a multiple Merkle proofs request, we just send a single set of trie
nodes containing all necessary nodes)
* BBT (BloomBitsTrie) works similarly to the existing CHT and contains
the bloombits search data to speed up log searches
* GetTxStatusMsg returns the inclusion position or the
pending/queued/unknown state of a transaction referenced by hash
* an optional signature of new block data (number/hash/td) can be
included in AnnounceMsg to provide an option for "very light
clients" (mobile/embedded devices) to skip expensive Ethash check
and accept multiple signatures of somewhat trusted servers (still a
lot better than trusting a single server completely and retrieving
everything through RPC). The new client mode is not implemented in
this PR, just the protocol extension.
7 years ago
Felföldi Zsolt
fff6e03a79
les: fix megacheck warnings ( #14941 )
...
* les: fix megacheck warnings
* les: fixed testGetProofs
7 years ago
Felix Lange
b8bd9a71c8
all: update license information
8 years ago
Zsolt Felfoldi
9f8d192991
les: light client protocol and API
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
ddfef21125
eth: disable eth/61 to prepare for more elaborate fork sync algos
8 years ago
Péter Szilágyi
e46ab3bdcd
eth, p2p, rpc/api: polish protocol info gathering
9 years ago
Péter Szilágyi
aa0538db0b
eth: clean out light node notions from eth
9 years ago
Péter Szilágyi
832b37c822
core, eth: receipt chain reconstruction
9 years ago
Péter Szilágyi
92f9a3e5fa
cmd, eth: support switching client modes of operation
9 years ago
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
9 years ago
Péter Szilágyi
2b339cbbd8
core, eth: split the db blocks into headers and bodies
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
Péter Szilágyi
c51e153b5c
eth, metrics, p2p: prepare metrics and net packets to eth/62
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
Felix Lange
ea54283b30
all: update license information
9 years ago
Péter Szilágyi
aac2b6ae4c
eth: add the blocks from numbers protocol message
9 years ago
Péter Szilágyi
393d675690
cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61
9 years ago
Felix Lange
73c355591f
core, eth: document that result of GetTransactions is modifiable
10 years ago
Péter Szilágyi
6f415b96b3
eth: implement the NewBlockHashes protocol proposal
10 years ago
Péter Szilágyi
06a041589f
eth, eth/downloader: remove duplicate consts, bump hash fetch to 2K
10 years ago
obscuren
c2f410214c
eth: began split up of peers and protocol manager
10 years ago
Felix Lange
56a48101dc
cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit
10 years ago
obscuren
73eb8e8c20
eth: basic implementation of the downloader
10 years ago
obscuren
97d2954e22
eth: added downloader for syncing up the chain
10 years ago
zelig
3d57e377a4
blockpool stability fixes:
...
- follow up locks and fix them
- chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test
- make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers.
- add purging to bounded nodeCache (config nodeCacheSize)
- use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost)
- minor error in addError
- reduce idleBestPeerTimeout to 1 minute
- correct status counts and unskip status passing status test
- glogified logging
10 years ago
obscuren
764a802eaa
Disabled TD check
...
@zelig : Temporarily commented out TD check untill the rest of the network has
been fixed.
10 years ago
obscuren
663fd8f849
Moved log to debug
10 years ago
obscuren
c985ce4d78
Changed log to new logging
10 years ago
obscuren
216ea425e4
corrected
10 years ago
obscuren
8e961df283
bumped network protocol
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
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
obscuren
f2c6a937f3
Protocol bump
10 years ago
obscuren
576df064e5
Updated for PV59
...
* Value XFER are refunded back to the sender if the execution fails
10 years ago
obscuren
ecd10d2cf7
iterator returned wrong value
10 years ago
zelig
50661f0e68
peer suspension to disallow reconnect after disconnect on fatal error for set period (PeerSuspensionInterval)
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
obscuren
0a1eeca41e
conversions. -compilable-
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
obscuren
aa9f981d5f
Bump protocol version 58
10 years ago
obscuren
23ad2f02c0
debug comments & pow handling
10 years ago