aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
Commit message (Collapse)AuthorAgeFilesLines
* rpc: implement websockets with github.com/gorilla/websocket (#19866)Felix Lange2019-07-221-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rpc: implement websockets with github.com/gorilla/websocket This change makes package rpc use the github.com/gorilla/websocket package for WebSockets instead of golang.org/x/net/websocket. The new library is more robust and supports all WebSocket features including continuation frames. There are new tests for two issues with the previously-used library: - TestWebsocketClientPing checks handling of Ping frames. - TestWebsocketLargeCall checks whether the request size limit is applied correctly. * rpc: raise HTTP/WebSocket request size limit to 5MB * rpc: remove default origin for client connections The client used to put the local hostname into the Origin header because the server wanted an origin to accept the connection, but that's silly: Origin is for browsers/websites. The nobody would whitelist a particular hostname. Now that the server doesn't need Origin anymore, don't bother setting one for clients. Users who need an origin can use DialWebsocket to create a client with arbitrary origin if needed. * vendor: put golang.org/x/net/websocket back * rpc: don't set Origin header for empty (default) origin * rpc: add HTTP status code to handshake error This makes it easier to debug failing connections. * ethstats: use github.com/gorilla/websocket * rpc: fix lint
* all: simplify timestamps to uint64 (#19372)Martin Holst Swende2019-04-031-1/+1
| | | | | | | | | | | | | | * all: simplify timestamps to uint64 * tests: update definitions * clef, faucet, mobile: leftover uint64 fixups * ethash: fix tests * graphql: update schema for timestamp * ethash: remove unused variable
* ethstats: comment minor correction (#17102)kevin.xu2018-06-291-1/+1
| | | spell correction from `repors` to `reports`
* ethstats: fix last golint warning (#16837)kiel barry2018-05-301-2/+2
|
* core, eth: minor txpool event cleanupsPéter Szilágyi2018-05-181-6/+6
|
* all: collate new transaction events togetherrjl4934564422018-05-181-4/+4
|
* eth: golint fixes to variable names (#16711)kiel barry2018-05-091-1/+1
|
* Merge pull request #15869 from Magicking/ethstats-reporting-fixPéter Szilágyi2018-01-151-0/+1
|\ | | | | ethstats: Fix ethstats reporting while syncing
| * ethstats: Fix ethstats reporting while syncingMagicking2018-01-131-0/+1
| |
* | all: switch gas limits from big.Int to uint64Péter Szilágyi2018-01-031-4/+4
| |
* | eth, les, light: expose chain config in les node info too (#15732)Péter Szilágyi2017-12-281-2/+2
|/
* all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-131-1/+0
|
* les, light: LES/2 protocol version (#14970)Felföldi Zsolt2017-10-241-1/+1
| | | | | | | | | | | | | | | | | | 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.
* core, light: send chain events using event.Feed (#14865)Miya Chen2017-08-181-19/+44
|
* ethstats: fix megacheck warningsEgon Elbre2017-08-071-3/+0
|
* ethstats: reduce ethstats traffic by trottling reportsPéter Szilágyi2017-06-011-22/+51
|
* ethstats: don't report transaction content, only hashPéter Szilágyi2017-05-301-12/+10
|
* cmd, core, eth, miner: remove txpool gas price limits (#14442)Péter Szilágyi2017-05-171-1/+3
|
* cmd, eth, les, mobile: make networkid uint64 everywherePéter Szilágyi2017-04-251-2/+2
|
* consensus, core, ethstats: use engine specific block beneficiary (#14318)Péter Szilágyi2017-04-121-1/+12
| | | | | | * consensus, core, ethstats: use engine specific block beneficiary * core, eth, les, miner: use explicit beneficiary during mining
* ethstats: cut short unavailable history responsesPéter Szilágyi2017-04-041-2/+10
|
* ethstats: sanity check ethstats history queriesPéter Szilágyi2017-03-311-2/+8
|
* ethstats: work around weird URL scheme parsing issuesPéter Szilágyi2017-03-301-2/+2
|
* ethstats: cleanups, trace logs and "fix" history responses (#3812)Péter Szilágyi2017-03-241-69/+85
|
* ethstats: try both ws:// and wss:// if none specifiedPéter Szilágyi2017-03-201-10/+28
|
* all: update light logs (and a few others) to the new modelPéter Szilágyi2017-03-031-19/+19
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-21/+20
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-071-23/+6
|
* all: gofmt -w -sFelix Lange2017-01-061-7/+7
|
* ethstats: implement block history retrievalsPéter Szilágyi2016-12-121-38/+190
|
* ethstats: fix timestamps and add custom proto supportPéter Szilágyi2016-12-121-1/+8
|
* ethstats: check if received event is validBas van Kervel2016-12-011-1/+9
|
* ethstats: don't drop concurrent head reports (mini forks)Péter Szilágyi2016-11-291-16/+16
|
* ethstats: report block miner, gas limit and gas consumptionPéter Szilágyi2016-11-291-6/+12
|
* cmd, ethstats, les, mobile, params: native netstats (#3336)Péter Szilágyi2016-11-251-0/+452