aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* geth: bump version numberobscuren2015-04-201-1/+1
|
* core: moved TD calculation from proc to chainobscuren2015-04-206-24/+24
|
* miner: go fmtobscuren2015-04-201-8/+7
|
* Switched getWork third output from difficulty to targetVitalik Buterin2015-04-201-1/+8
|
* miner: fixed remote miner current workobscuren2015-04-201-1/+2
|
* Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-203-0/+55
|\
| * Merge pull request #748 from fjl/build-script-unixJeffrey Wilcke2015-04-193-0/+55
| |\ | | | | | | Makefile: for non-gophers
| | * Makefile: for non-gophersFelix Lange2015-04-193-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many people need or want to build go-ethereum from the git repository, mostly to stay up to date with recent changes. We cannot expect that people without Go experience grok the Go workspace concept. With the Makefile, building from github requires only three steps (provided that a Go toolchain is installed): - git clone https://github.com/ethereum/go-ethereum - ... install C libraries (libgmp, etc.) ... - make
* | | geth: admin download statusobscuren2015-04-202-11/+22
| | |
* | | miner: removed default timer & update dag when threads > 0obscuren2015-04-202-16/+8
|/ /
* | downloader: fixed tests with low ttlobscuren2015-04-192-2/+3
| |
* | movedobscuren2015-04-191-6/+6
| |
* | Merge branch 'fjl-rlp-size-validation' into developobscuren2015-04-1913-233/+481
|\ \
| * | Merge branch 'rlp-size-validation' of https://github.com/fjl/go-ethereum ↵obscuren2015-04-1913-233/+481
|/| | | | | | | | | | | | | | | | | | | | into fjl-rlp-size-validation Conflicts: eth/protocol.go
| * | rlp: require declared number of input elements for array typesFelix Lange2015-04-172-40/+26
| | |
| * | p2p: make DiscReason bigger than byteFelix Lange2015-04-171-1/+1
| | | | | | | | | | | | | | | We decode into [1]DiscReason in a few places. That doesn't work anymore because package rlp no longer accepts RLP lists for byte arrays.
| * | rlp: stop accepting lists for byte slices and byte arraysFelix Lange2015-04-172-45/+10
| | |
| * | core/types: add rlp tag "nil" for Transaction.RecipientFelix Lange2015-04-171-1/+1
| | |
| * | rlp: stricter rules for structs and pointersFelix Lange2015-04-174-52/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rules have changed as follows: * When decoding into pointers, empty values no longer produce a nil pointer. This can be overriden for struct fields using the struct tag "nil". * When decoding into structs, the input list must contain an element for each field.
| * | rlp: reject non-minimal input stringsFelix Lange2015-04-172-15/+45
| | | | | | | | | | | | | | | Input strings of length 1 containing a byte < 56 are non-minimal and should be encoded as a single byte instead. Reject such strings.
| * | rlp: stricter validation of canonical integer formatFelix Lange2015-04-172-42/+93
| | | | | | | | | | | | | | | | | | | | | All integers (including size information in type tags) need to be encoded using the smallest possible encoding. This commit expands the stricter validation introduced for *big.Int in commit 59597d23a5ee268 to all integer types and size tags.
| * | rlp: fix handling of single byte zero when decoding into a pointerFelix Lange2015-04-172-6/+6
| | | | | | | | | | | | | | | | | | A single zero byte carries information and should not set the pointer to nil. This is arguably a corner case. While here, fix the comment to explain pointer reuse.
| * | whisper: fix comment for rlpenvFelix Lange2015-04-171-4/+5
| | |
| * | p2p/discover: use rlp.DecodeBytesFelix Lange2015-04-171-1/+1
| | |
| * | rlp: fix integer overflow in list element size validationFelix Lange2015-04-172-2/+5
| | | | | | | | | | | | It is not safe to add anything to s.size.
| * | cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limitFelix Lange2015-04-175-7/+8
| | |
| * | rlp: check top-level value sizes against input limitFelix Lange2015-04-172-56/+171
| | | | | | | | | | | | | | | | | | This is a preliminary fix for #420 (SEC-18 RLP decoder unsafe allocation). If a sane input limit is set on the rlp.Stream, it should no longer be possible to cause huge []byte allocations.
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-192-6/+4
|\ \ \
| * \ \ Merge pull request #749 from fjl/fix-nodekey-persistenceJeffrey Wilcke2015-04-192-6/+4
| |\ \ \ | | | | | | | | | | Fix p2p node key persistence
| | * | | crypto: update {Load,Save}ECDSA comments to mention hex encodingFelix Lange2015-04-191-2/+3
| | | | |
| | * | | eth: fix node key persistenceFelix Lange2015-04-191-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crypto.LoadECDSA has been modified to expect hex data. The key was being saved as raw bytes, causing the file to be rewritten on every start.
* | | | | Removed debug printlnobscuren2015-04-191-3/+0
| | | | |
* | | | | eth: drop blocks with low TDobscuren2015-04-192-5/+7
| | | | |
* | | | | geth: added getBlockRlp for dumping block in rlp formatobscuren2015-04-191-0/+26
| | | | |
* | | | | downloader: moved chunk ignoring. Fixes issue with catching upobscuren2015-04-194-31/+44
|/ / / /
* | | | eth: temp 100% block propagation because of the current state of the netobscuren2015-04-191-2/+2
| | | |
* | | | downloader: defer peer reset after downloadobscuren2015-04-192-4/+8
|/ / /
* | | downloader: reset hashTtl on receiveobscuren2015-04-191-0/+2
| | |
* | | Merge branch 'downloader-proto' into developobscuren2015-04-1913-453/+790
|\ \ \ | |_|/ |/| |
| * | cleanupobscuren2015-04-191-3/+2
| | |
| * | eth: removed debug messages to stdoutobscuren2015-04-191-2/+2
| | |
| * | downloader: don't remove peers. keep them aroundobscuren2015-04-193-17/+17
| | |
| * | geth: added identity flag which allows to set a custom node nameobscuren2015-04-192-0/+10
| | |
| * | Merge branch 'develop' into downloader-protoobscuren2015-04-191-1/+7
| |\ \ | |/ / |/| |
* | | core: merge using equal block numbers rather than the current blockobscuren2015-04-191-1/+7
| | |
| * | miner: reverted back to old eventobscuren2015-04-191-1/+1
| | |
| * | typoobscuren2015-04-191-1/+1
| | |
| * | miner: changed listenerobscuren2015-04-191-1/+1
| | |
| * | downloader: free up peers from work when the downloader resetsobscuren2015-04-193-5/+22
| | |
| * | downloader: throw an error if there are no peers available for downloadobscuren2015-04-191-6/+16
| | | | | | | | | | | | | | | | | | If all peers have been tried during the block download process and some hashes are unfetchable (available peers > 0 and fetching == 0) throw an error so the process can be aborted.
| * | downloader: fixed a race condition for download statusobscuren2015-04-191-1/+0
| | |
| * | eth: adapted to new synchronous api of downloader's AddBlockobscuren2015-04-193-4/+14
| | |
| * | downloader: improved downloading and synchronisationobscuren2015-04-194-110/+129
| | | | | | | | | | | | | | | | | | * Downloader's peers keeps track of peer's previously requested hashes so that we don't have to re-request * Changed `AddBlock` to be fully synchronous
| * | downloader: make sure that hashes are only accepted from the active peerobscuren2015-04-182-20/+54
| | |
| * | Merge branch 'develop' into downloader-protoobscuren2015-04-1822-366/+916
| |\ \ | |/ / |/| |
* | | updated ethashobscuren2015-04-182-4/+4
| | |
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-1819-362/+910
|\ \ \
| * \ \ Merge pull request #736 from frozeman/developFelix Lange2015-04-181-1/+1
| |\ \ \ | | |_|/ | |/| | add extra space to miner icon
| | * | add extra space to miner iconFabian Vogelsteller2015-04-171-1/+1
| |/ /
| * | Merge pull request #718 from karalabe/whisper-cleanupFelix Lange2015-04-1716-356/+899
| |\ \ | | | | | | | | Whisper cleanup, part 2
| | * | whisper: cleanup lefover scopingPéter Szilágyi2015-04-173-4/+4
| | | |
| | * | whisper: hide some internal typesPéter Szilágyi2015-04-171-3/+3
| | | |
| | * | whisper: don't issue signature warning if none presentPéter Szilágyi2015-04-161-0/+5
| | | |
| | * | whisper: track active peers, add peer cache expiry testPéter Szilágyi2015-04-162-22/+86
| | | |
| | * | whisper: remove dead code, rename a few constantsPéter Szilágyi2015-04-166-59/+7
| | | |
| | * | whisper: use async handshakes to handle blocking peersPéter Szilágyi2015-04-153-47/+12
| | | |
| | * | whisper: remove some unneeded testing complexityPéter Szilágyi2015-04-153-32/+5
| | | |
| | * | whisper: global message expiration tests, polishesPéter Szilágyi2015-04-153-16/+49
| | | |
| | * | whisper: mock tests to use simulated peersPéter Szilágyi2015-04-152-71/+55
| | | |
| | * | whisper: add basic tests for the whiper peersPéter Szilágyi2015-04-142-0/+221
| | | |
| | * | whisper: shorten constants to TTL and PoWPéter Szilágyi2015-04-145-15/+15
| | | |
| | * | whisper, xeth/whisper, ui/qt/qwhispe: fix API polish breakagesPéter Szilágyi2015-04-143-20/+19
| | | |
| | * | whisper: add known message expiration to peers, cleanupPéter Szilágyi2015-04-142-95/+145
| | | |
| | * | whisper: general cleanups, documentationPéter Szilágyi2015-04-144-129/+146
| | | |
| | * | whisper: fix anonymous broadcast drop, add broadcast testsPéter Szilágyi2015-04-143-24/+99
| | | |
| | * | whisper: add utility functions for creating topicsPéter Szilágyi2015-04-143-8/+58
| | | |
| | * | whisper: push work in progress for bug reportPéter Szilágyi2015-04-132-6/+19
| | | |
| | * | whisper: start adding integration testsPéter Szilágyi2015-04-131-18/+118
| | | |
| | * | whisper: clean up and integrate topicsPéter Szilágyi2015-04-137-43/+85
| | | |
| | * | whisper: separate out magic number from the codePéter Szilágyi2015-04-134-25/+29
| | | |
| * | | Merge pull request #733 from fjl/p2p-dial-timerJeffrey Wilcke2015-04-171-3/+8
| |\ \ \ | | | | | | | | | | p2p: fix the dial timer
| | * | | p2p: fix the dial timerFelix Lange2015-04-171-3/+8
| |/ / / | | | | | | | | | | | | | | | | The dial timer was not reset properly when the peer count reached MaxPeers.
| * | | Merge pull request #728 from tgerring/issue727Jeffrey Wilcke2015-04-171-2/+2
| |\ \ \ | | | | | | | | | | Fix RPC Call output when empty
| | * | | Fix call output when emptyTaylor Gerring2015-04-161-2/+2
| | | | |
* | | | | rpc: set from. Closes #742obscuren2015-04-181-0/+2
|/ / / /
| | | * downloader: reset the queue if a peer response with an empty hash setobscuren2015-04-183-15/+37
| | | |
| | | * eth: ignore NewBlockMsg with lower tdobscuren2015-04-181-2/+3
| | | |
| | | * core: improved uncle validation error messageobscuren2015-04-181-3/+2
| | | |
| | | * downloader: all handlers check for isBusyobscuren2015-04-181-7/+7
| | | |
| | | * eth: fixed proper BroadcastBlock for mined blocksobscuren2015-04-181-1/+1
| | | |
| | | * geth: bump version numberobscuren2015-04-181-2/+3
| | | |
| | | * eth: listen for mined blocks and propagate using the protocol managerobscuren2015-04-181-17/+15
| | | |
| | | * eth: drop blocks that are knownobscuren2015-04-181-0/+6
| | | |
| | | * eth: additional cleanups to the subprotocol, improved block propagationobscuren2015-04-183-56/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improved block propagation by sending blocks only to peers to which, as far as we know, the peer does not know about. * Made sub protocol its own manager * SubProtocol now contains the p2p.Protocol which is used instead of a function-returning-protocol thing.
| | | * eth: began split up of peers and protocol managerobscuren2015-04-184-388/+369
| | | |
| | | * Merge branch 'develop' into downloader-protoobscuren2015-04-1843-253/+4347
| | | |\ | |_|_|/ |/| | | | | | | | | | | Conflicts: eth/downloader/downloader.go
* | | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-1741-248/+4230
|\ \ \ \
| * \ \ \ Merge pull request #730 from Gustav-Simonsson/update_transaction_testsJeffrey Wilcke2015-04-1741-248/+4230
| |\ \ \ \ | | | | | | | | | | | | Update transaction tests
| | * | | | Fixes for TransactionTestsGustav Simonsson2015-04-163-41/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Include tests which now has consistent HEX encodings * Comment out two failing tests: " "TransactionWithHihghNonce" due to wrong nonce size "TransactionWithSvalueHigh" due to wrong ECDSA s range * Cleanup conversion functions and fix expected encodings for tests validation fields
| | * | | | Update JSON testsGustav Simonsson2015-04-1638-207/+4177
| |/ / / /
* / / / / downloader: fixed a typoobscuren2015-04-171-1/+1
|/ / / /
* | | | downloader: added demotion / promotion in prep. for rep. systemobscuren2015-04-162-0/+25
| | | |
* | | | downloader: updated downloader and fixed issues with catch upobscuren2015-04-161-21/+47
| | | | | | | | | | | | | | | | | | | | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents).
| | | * eth: basic implementation of the downloaderobscuren2015-04-171-0/+25
| | | |
| | | * Merge branch 'develop' into downloader-protoobscuren2015-04-16121-1166509/+19667
| | | |\
| | | | * downloader: updated downloader and fixed issues with catch upobscuren2015-04-161-22/+48
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents).
* | | | core: changed split detection to also account for number less thanobscuren2015-04-161-1/+2
|/ / /
* | | miner: start a newly registered agent if the miner is running. Closes #681obscuren2015-04-152-3/+9
| | |
* | | common: Added debug reporterobscuren2015-04-151-0/+20
| | | | | | | | | | | | | | | | | | | | | NOTE: For known, non-consensus, hard to reproduce bugs consider the following method `common.Report("extra", stuff, "you need logged")` will give you a stack trace and a friendly request to submit it as an issue on our issue tracker.
* | | miner: moved bad uncle logging to ridiculous log level. Closes #720obscuren2015-04-152-2/+7
| | |
* | | core: fixed issue for logs filter. Closes #629obscuren2015-04-151-1/+1
| | | | | | | | | | | | | | | Log filter `Address` field was cast to a Hash which causes it to always fail.
* | | core/types: Changed bloom lookup to take anything bytes backedobscuren2015-04-151-2/+6
| | |
* | | rpc: changed logging to use glogobscuren2015-04-151-2/+3
| | |
* | | geth: fixed failing cli testsobscuren2015-04-151-2/+2
| | |
* | | rpc: change eth_protocolVersion to eth_version. Closes #714obscuren2015-04-151-1/+1
| | |
* | | geth: added print block to adminobscuren2015-04-141-1/+32
| | |
* | | eth: limit the amount of peers that will receive Block/Tx messagesobscuren2015-04-141-2/+3
| | | | | | | | | | | | All transaction and block messages are now limited using `sqrt(peers)`
* | | state: fixed mutex lockesobscuren2015-04-141-2/+14
| | |
* | | p2p: added limiter function to limit package broadcastingobscuren2015-04-141-0/+13
| | |
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-146-41/+14
|\ \ \
| * \ \ Merge pull request #704 from fjl/p2p-concurrency-fixupsJeffrey Wilcke2015-04-146-41/+14
| |\ \ \ | | | | | | | | | | p2p: more concurrency fixups
| | * | | p2p/discover: improve timer handling for reply timeoutsFelix Lange2015-04-141-2/+3
| | | | |
| | * | | p2p/discover: remove unused field Node.activeStampFelix Lange2015-04-132-16/+0
| | | | |
| | * | | p2p: fix unsynchronized map access during Server shutdownFelix Lange2015-04-131-0/+2
| | | | | | | | | | | | | | | | | | | | removePeer can be called even after listenLoop and dialLoop have returned.
| | * | | p2p: fix yet another disconnect hangFelix Lange2015-04-131-22/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Peer.readLoop will only terminate if the connection is closed. Fix the hang by closing the connection before waiting for readLoop to terminate. This also removes the british disconnect procedure where we're waiting for the remote end to close the connection. I have confirmed with @subtly that cpp-ethereum doesn't adhere to it either.
| | * | | p2p: fix goroutine leak when handshake read failsFelix Lange2015-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | This regression was introduced in b3c058a9e4e9.
* | | | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-141-2/+2
|\| | | |
| * | | | Merge pull request #709 from ligi/patch-1Felix Lange2015-04-141-2/+2
| |\ \ \ \ | | | | | | | | | | | | Fix links
| | * | | | Fix links ligi2015-04-141-2/+2
| |/ / / / | | | | | | | | | | Where 404s before - now linking to the path that they stay valid a little longer ;-)
* | | | | core: during split properly insert parent blocksobscuren2015-04-141-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a split parent and grand parent were included in the database but not in the canonical chain (numbered chain). Added a `merge` function which finds the common ancestor of the chains and reinserts the missing blocks.
* | | | | miner: don't break loop when encountering gas limit reach errobscuren2015-04-141-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Processing transactions should continue when a transaction throws a gas limit reached error. Other transactions may actually succeed.
* | | | | state: fixed nonce issue in managed stateobscuren2015-04-141-2/+2
|/ / / / | | | | | | | | | | | | Rlock => Lock when creating a new nonce
* | | | rpc: removed hash from LogRes. Closes #701obscuren2015-04-141-1/+0
| | | |
* | | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-13101-1166413/+19449
|\ \ \ \
| * \ \ \ Merge pull request #702 from ethersphere/frontier/blockpoolJeffrey Wilcke2015-04-1313-366/+370
| |\ \ \ \ | | | | | | | | | | | | blockpool stability fixes:
| | * | | | blockpool stability fixes:zelig2015-04-1313-366/+370
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | | | Merge pull request #700 from bas-vk/issue_650Jeffrey Wilcke2015-04-136-29/+188
| |\ \ \ \ | | | | | | | | | | | | Added blockchain DB versioning support, closes #650
| | * | | | Added blockchain DB versioning support, closes #650Bas van Kervel2015-04-136-29/+188
| | | | | |
| * | | | | Merge pull request #689 from Gustav-Simonsson/add_transaction_testsJeffrey Wilcke2015-04-1374-1165839/+18528
| |\ \ \ \ \ | | |_|/ / / | |/| | | | Add transaction tests
| | * | | | Enable more tx tests by expecting most common encoding of valuesGustav Simonsson2015-04-102-15/+8
| | | | | |
| | * | | | Remove unneeded map assignments for working tx RLP testsGustav Simonsson2015-04-101-7/+0
| | | | | |
| | * | | | Add TransactionTests wrapped as Go testsGustav Simonsson2015-04-103-3/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add initial go wrapping for TransactionTests with some tests disabled in lieu of consistent HEX encodings and a few other pending bugfixes * TODO: Consider better way of perhaps modelling each test in the JSON files as a single Go test, instead of one Go test per JSON file
| | * | | | Update JSON test filesGustav Simonsson2015-04-1071-1165836/+18331
| | | | | |
| * | | | | Merge pull request #690 from karalabe/whisper-cleanupFelix Lange2015-04-139-179/+363
| |\ \ \ \ \ | | | |_|/ / | | |/| | | Whisper cleanup, part 1
| | * | | | whisper: fix comment entity capitalizationsPéter Szilágyi2015-04-122-7/+7
| | | | | |
| | * | | | xeth/whisper, ui/qt/qwhisper: fix API update breaks.Péter Szilágyi2015-04-102-4/+4
| | | | | |
| | * | | | whisper: polish the Envelope a bit, prep for tests.Péter Szilágyi2015-04-106-65/+75
| | | | | |
| | * | | | whisper: polish the messages, fix some bugs, testsPéter Szilágyi2015-04-106-88/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugs fixed: - Use randomly generated flags as the spec required. - During envelope opening check the first bit only for signature.
| | * | | | whisper: rename test file according to Go stylePéter Szilágyi2015-04-101-0/+0
| | | | | |
| | * | | | whisper: make the test app runnable & do something insidePéter Szilágyi2015-04-101-12/+65
| | |/ / /
| | | | * eth: added downloader for syncing up the chainobscuren2015-04-132-37/+72
| |_|_|/ |/| | |
* | | | downloader: added missing blocks catchup functionalityobscuren2015-04-134-133/+303
| | | | | | | | | | | | | | | | | | | | When a parent is missing in the block list an attempt should be made to fetch the missing parent and grandparents.
* | | | downloader: return an error for peer.fetch and return chunk to queueobscuren2015-04-122-3/+16
| | | | | | | | | | | | | | | | | | | | If a peer was somehow already fetching and somehow managed to end up in the `available` pool it should return it's work.
* | | | downloader: renamed chunks to queueobscuren2015-04-121-0/+0
| | | |
* | | | downloader: implemented new downloaderobscuren2015-04-124-0/+602
|/ / /
* | | Merge pull request #695 from ethersphere/frontier/blockpoolJeffrey Wilcke2015-04-111-7/+15
|\ \ \ | | | | | | | | bugfixes for headsection deadlocks
| * | | bugfixes for headsection deadlockszelig2015-04-111-7/+15
|/ / / | | | | | | | | | | | | - switchC initialised as closed - move select in setChainInfoFromBlock out of peer lock
* | | Updated glogobscuren2015-04-111-11/+15
| | |
* | | Set input to nil for createobscuren2015-04-111-1/+4
| | |
* | | Bumpobscuren2015-04-111-1/+1
| | |
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-114-139/+148
|\ \ \
| * \ \ Merge pull request #692 from ethersphere/frontier/blockpoolJeffrey Wilcke2015-04-114-139/+148
| |\ \ \ | | | | | | | | | | td update from node + bugfix
| | * | | td update from nodezelig2015-04-104-139/+148
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | - reorg and simplify AddBlock - introduce nodeCache - TestPeerPromotionByTdOnBlock unskipped and passes - move switchC/idleC channel creation around: solves deadlock (now respects the contract with section process: either can activate or complete at any one time)
* | | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-108-183/+354
|\| | |
| * | | Merge pull request #691 from fjl/discovery-fixesJeffrey Wilcke2015-04-108-183/+354
| |\ \ \ | | |/ / | |/| | p2p: a bunch of fixes
| | * | p2p: limit number of lingering inbound pre-handshake connectionsFelix Lange2015-04-101-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is supposed to apply some back pressure so Server is not accepting more connections than it can actually handle. The current limit is 50. This doesn't really need to be configurable, but we'll see how it behaves in our test nodes and adjust accordingly.
| | * | p2p: use RLock instead of Lock for pre-dial checksFelix Lange2015-04-101-10/+12
| | | |
| | * | p2p: improve disconnect signaling at handshake timeFelix Lange2015-04-104-35/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As of this commit, p2p will disconnect nodes directly after the encryption handshake if too many peer connections are active. Errors in the protocol handshake packet are now handled more politely by sending a disconnect packet before closing the connection.
| | * | p2p: don't mess with the socket deadline in Peer.readLoopFelix Lange2015-04-101-1/+0
| | | | | | | | | | | | | | | | netWrapper already sets a read deadline in ReadMsg.
| | * | p2p: properly decrement peer wait group counter for setup errorsFelix Lange2015-04-101-0/+11
| | | |
| | * | p2p: fix Peer shutdown deadlocksFelix Lange2015-04-104-78/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were multiple synchronization issues in the disconnect handling, all caused by the odd special-casing of Peer.readLoop errors. Remove the special handling of read errors and make readLoop part of the Peer WaitGroup. Thanks to @Gustav-Simonsson for pointing at arrows in a diagram and playing rubber-duck.
| | * | p2p: improve peer selection logicFelix Lange2015-04-101-56/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new (temporary) peer selection strategy based on random lookups. While we're here, also implement the TODOs in dialLoop.
| | * | p2p/discover: don't log packet contentFelix Lange2015-04-101-3/+4
| | | |
| | * | p2p/discover: make packet processing less concurrentFelix Lange2015-04-101-6/+4
| |/ /
* / / Added pprofobscuren2015-04-101-0/+8
|/ /
* | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-103-13/+13
|\ \
| * \ Merge pull request #687 from karalabe/developJeffrey Wilcke2015-04-102-9/+10
| |\ \ | | |/ | |/| xeth: fix #640, panic converting nil recipient to hex.
| | * cmd/mist: fix another nil recipient address panic.Péter Szilágyi2015-04-101-7/+5
| | |
| | * cmd/mist: fix #640, panic converting nil recipient to hex.Péter Szilágyi2015-04-101-2/+5
| |/ | | | | | | | | | | Fetching the recipient address from a transaction was changed to return nil instead of a zero-address, but this code path was not updated, so whenever a contract was created, a nil panic occured.
| * Merge pull request #682 from bas-vk/issue_567Jeffrey Wilcke2015-04-101-4/+3
| |\ | | | | | | bugfix as a result of PR 671
| | * bugfix as a result of PR 671Bas van Kervel2015-04-101-4/+3
| | |
* | | Skipped td testobscuren2015-04-101-0/+1
|/ /
* | Added some quotes ....obscuren2015-04-102-3/+2
| |
* | glogobscuren2015-04-101-1/+3
| |
* | Added proper contract for registrarobscuren2015-04-092-3/+3
| |
* | bumpobscuren2015-04-091-1/+1
| |
* | added contractsobscuren2015-04-092-2/+6
| |
* | Merge branch 'ethersphere-frontier/blockpool' into developobscuren2015-04-0912-88/+180
|\ \
| * | Disabled TD checkobscuren2015-04-093-1/+5
| | | | | | | | | | | | | | | @zelig: Temporarily commented out TD check untill the rest of the network has been fixed.
| * | Moved log to debugobscuren2015-04-092-5/+20
| | |
| * | Merge branch 'frontier/blockpool' of ↵obscuren2015-04-0910-83/+156
|/| | | | | | | | | | | https://github.com/ethersphere/go-ethereum into ethersphere-frontier/blockpool
| * | separate lock for blacklistzelig2015-04-091-3/+6
| | |
| * | oops peer unlocked before return - fixes deadlockzelig2015-04-092-0/+2
| | |
| * | uncomment future block TD check, add test for skipping TD check on future blockzelig2015-04-094-9/+46
| | |
| * | fix deadlock issue in AddBlockzelig2015-04-094-39/+46
| | | | | | | | | | | | | | | | | | - add peer switch channel arg to activateChain - no peer locking within - proper locking in AddBlock - fixes deadlock issue - comment out TD check and skip incorrect TD test again for hotfix
| * | future queued block supportzelig2015-04-093-1/+7
| | | | | | | | | | | | | | | | | | | | | - queued bool // flag for blockpool to skip TD check - set to true when future block queued - in checkTD: skip check if queued - TODO: add test (insertchain sets future block)
| * | put back checkTD and unskip incorrectTD testzelig2015-04-092-5/+5
| | |
| * | introduce peers registry on nodeszelig2015-04-092-43/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - TestPeerPromotionByTdOnBlock renamed and skipped for now test should pass iff if TD is updated based on an agreement - senders register in AddBlock, flag records if they are coming from newblock message (and therefore advertise their TD with the block) or block message (TODO: latter are stored on the cache and updated by checkTD call; protocol should also call AddBlock on newblock messages by non-best peers) - remove TD update from optional TD field in addBlock: this is no longer part of the eth protocol spec -> TODO: reflect in wiki - only initialise peer map if at least two
| * | fix blockpool deadlockzelig2015-04-093-12/+22
| | | | | | | | | | | | | | | | | | - do not break from headsection on error [remove peer after protocol quit will close switchC, until then head block can arrive and block on channel while keeping peers lock causing a deadlock.] - more careful locking in AddBlock
| * | fix TestPoolStatus test crashing, skip tests failing (due to @obscuren hotfixes)zelig2015-04-093-1/+11
| | |
* | | Added default registrarobscuren2015-04-092-9/+2
| | |
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-095-7/+174
|\| |
| * | Merge pull request #678 from bas-vk/feature_635Jeffrey Wilcke2015-04-092-5/+11
| |\ \ | | | | | | | | Support for import/export hex encoded keys
| | * | removed utility function and implemented hex conversation in crypto functionsBas van Kervel2015-04-092-14/+9
| | | |
| | * | Support for import/export hex encoded keys, closes #635Bas van Kervel2015-04-093-5/+16
| | | |
| * | | Merge pull request #671 from bas-vk/issue_567Jeffrey Wilcke2015-04-093-2/+163
| |\ \ \ | | | |/ | | |/| Add path expansion support for command line arguments, closes 567
| | * | reformat code with goimportsBas van Kervel2015-04-093-94/+94
| | | |
| | * | Add path expansion support for command line arguments, closes 567Bas van Kervel2015-04-083-3/+164
| | | |
* | | | Updated xeth loggerobscuren2015-04-092-4/+4
|/ / /
* | | Removed from as a requirement and changedobscuren2015-04-093-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Removed the from as a requiremet from the RPC eth_call. Xeth#Call now also default values to: 1. Supplied account 2. First account if any 3. No managed account => 000000..00
* | | Moved handling of nonces to the managed stateobscuren2015-04-093-6/+9
| | |
* | | Default log to stderrobscuren2015-04-092-2/+2
| | |
* | | Make sure mist runs ... :-)obscuren2015-04-091-6/+10
| | |
* | | Improved transaction poolobscuren2015-04-098-143/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The transaction pool will now some easily be able to pre determine the validity of a transaction by checking the following: * Account existst * gas limit higher than the instrinsic gas * enough funds to pay upfront costs * nonce check
* | | Fixed tests to reflect log changesobscuren2015-04-095-28/+28
| | |
* | | ignore invalid txs right after being added if they prove incorrectobscuren2015-04-092-2/+6
| | |
* | | Changed how logs are being recordedobscuren2015-04-0812-122/+83
| |/ |/| | | | | | | | | | | Logs are now recorded per transactions instead of tossing them out after each transaction. This should also fix an issue with `eth_getFilterLogs` (#629) Also now implemented are the `transactionHash, blockHash, transactionIndex, logIndex` on logs. Closes #654.
* | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-081-0/+4
|\ \
| * \ Merge pull request #658 from Gustav-Simonsson/add_ec_point_on_curve_checkJeffrey Wilcke2015-04-081-0/+4
| |\ \ | | | | | | | | Add IsOnCurve check to EC unmarshalling in ECIES decryption
| | * | Add IsOnCurve check to EC unmarshalling in ECIES decryptionGustav Simonsson2015-04-081-0/+4
| |/ /
* | | Sync managed accounts to the networkobscuren2015-04-082-3/+17
| | |
* | | Added additional methods to the managed stateobscuren2015-04-082-2/+44
|/ / | | | | | | | | * GetNonce Returns the canonical nonce * SetNonce Set the managed account's nonce
* | Improved tx pool to ignore invalid transactionsobscuren2015-04-082-9/+30
| | | | | | | | | | Transaction pool will attempt to ignore invalid transactions it had previously encountered.
* | fixed stop of minerobscuren2015-04-081-14/+12
| |
* | Queued level db writes and batch writes. Closes #647obscuren2015-04-083-46/+94
| |
* | Merge pull request #648 from ↵Jeffrey Wilcke2015-04-084-13/+28
|\ \ | | | | | | | | | | | | Gustav-Simonsson/forward_ecrecover_err_and_remove_dup_checks Forward and log EC recover err and remove dup pubkey len check
| * | Use logger.Error instead of 0 with glogGustav Simonsson2015-04-073-3/+6
| | |
| * | Forward and log EC recover err and remove dup pubkey len checkGustav Simonsson2015-04-074-13/+25
| | |
* | | Merge pull request #657 from Gustav-Simonsson/disable_libsecp256k1_debug_checkJeffrey Wilcke2015-04-081-0/+1
|\ \ \ | | | | | | | | libsecp256k1 #define NDEBUG
| * | | libsecp256k1 #define NDEBUGGustav Simonsson2015-04-081-0/+1
|/ / /
* | | Merge branch 'Gustav-Simonsson-update_bitcoin_secp256k1_lib2' into developobscuren2015-04-0775-5046/+10533
|\ \ \
| * | | Link GMPobscuren2015-04-071-0/+3
| | | |
| * | | Merge branch 'update_bitcoin_secp256k1_lib2' of ↵obscuren2015-04-0775-5049/+10533
|/| | | | | | | | | | | | | | | https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-update_bitcoin_secp256k1_lib2
| * | | Update Go wrapper around libbsecp256k1Gustav Simonsson2015-04-071-89/+25
| | | |
| * | | Update bitcoin secp256k1 libGustav Simonsson2015-04-0774-4960/+10508
| | | |
* | | | Merge branch 'tgerring-rpcfabian' into developobscuren2015-04-076-67/+514
|\ \ \ \ | |_|_|/ |/| | |
| * | | merge conflictobscuren2015-04-076-67/+514
|/| | |
| * | | More type fixesTaylor Gerring2015-04-071-10/+9
| | | |
| * | | Output format and nil fixesTaylor Gerring2015-04-071-11/+21
| | | |
| * | | Increased test coverage for argsTaylor Gerring2015-04-051-0/+214
| | | |
| * | | Improved test coverage for rpc typesTaylor Gerring2015-04-042-14/+158
| | | |
| * | | More test coverage for responsesTaylor Gerring2015-04-041-34/+111
| | | |
| * | | Allow "earliest" block heightTaylor Gerring2015-04-041-0/+2
| | | |
| * | | Merge branch 'develop' into rpcfabianTaylor Gerring2015-04-0440-774/+2865
| |\ \ \
* | | | | updated loggingobscuren2015-04-072-8/+6
| | | | |
* | | | | Updated loggingobscuren2015-04-0713-58/+76
| | | | |
* | | | | Updated ethashobscuren2015-04-0716-261/+315
| | | | |
* | | | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-04-071-10/+6
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Merge pull request #653 from debris/circular_structureJeffrey Wilcke2015-04-071-10/+6
| |\ \ \ \ | | |_|_|/ | |/| | | fixed printing circular structures
| | * | | fixed printing circular structuresMarek Kotewicz2015-04-071-10/+6
| |/ / /