Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rpc: implement websockets with github.com/gorilla/websocket (#19866) | Felix Lange | 2019-07-22 | 1 | -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 Swende | 2019-04-03 | 1 | -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.xu | 2018-06-29 | 1 | -1/+1 |
| | | | spell correction from `repors` to `reports` | ||||
* | ethstats: fix last golint warning (#16837) | kiel barry | 2018-05-30 | 1 | -2/+2 |
| | |||||
* | core, eth: minor txpool event cleanups | Péter Szilágyi | 2018-05-18 | 1 | -6/+6 |
| | |||||
* | all: collate new transaction events together | rjl493456442 | 2018-05-18 | 1 | -4/+4 |
| | |||||
* | eth: golint fixes to variable names (#16711) | kiel barry | 2018-05-09 | 1 | -1/+1 |
| | |||||
* | Merge pull request #15869 from Magicking/ethstats-reporting-fix | Péter Szilágyi | 2018-01-15 | 1 | -0/+1 |
|\ | | | | | ethstats: Fix ethstats reporting while syncing | ||||
| * | ethstats: Fix ethstats reporting while syncing | Magicking | 2018-01-13 | 1 | -0/+1 |
| | | |||||
* | | all: switch gas limits from big.Int to uint64 | Péter Szilágyi | 2018-01-03 | 1 | -4/+4 |
| | | |||||
* | | eth, les, light: expose chain config in les node info too (#15732) | Péter Szilágyi | 2017-12-28 | 1 | -2/+2 |
|/ | |||||
* | all: use gometalinter.v2, fix new gosimple issues (#15650) | Zach | 2017-12-13 | 1 | -1/+0 |
| | |||||
* | les, light: LES/2 protocol version (#14970) | Felföldi Zsolt | 2017-10-24 | 1 | -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 Chen | 2017-08-18 | 1 | -19/+44 |
| | |||||
* | ethstats: fix megacheck warnings | Egon Elbre | 2017-08-07 | 1 | -3/+0 |
| | |||||
* | ethstats: reduce ethstats traffic by trottling reports | Péter Szilágyi | 2017-06-01 | 1 | -22/+51 |
| | |||||
* | ethstats: don't report transaction content, only hash | Péter Szilágyi | 2017-05-30 | 1 | -12/+10 |
| | |||||
* | cmd, core, eth, miner: remove txpool gas price limits (#14442) | Péter Szilágyi | 2017-05-17 | 1 | -1/+3 |
| | |||||
* | cmd, eth, les, mobile: make networkid uint64 everywhere | Péter Szilágyi | 2017-04-25 | 1 | -2/+2 |
| | |||||
* | consensus, core, ethstats: use engine specific block beneficiary (#14318) | Péter Szilágyi | 2017-04-12 | 1 | -1/+12 |
| | | | | | | * consensus, core, ethstats: use engine specific block beneficiary * core, eth, les, miner: use explicit beneficiary during mining | ||||
* | ethstats: cut short unavailable history responses | Péter Szilágyi | 2017-04-04 | 1 | -2/+10 |
| | |||||
* | ethstats: sanity check ethstats history queries | Péter Szilágyi | 2017-03-31 | 1 | -2/+8 |
| | |||||
* | ethstats: work around weird URL scheme parsing issues | Péter Szilágyi | 2017-03-30 | 1 | -2/+2 |
| | |||||
* | ethstats: cleanups, trace logs and "fix" history responses (#3812) | Péter Szilágyi | 2017-03-24 | 1 | -69/+85 |
| | |||||
* | ethstats: try both ws:// and wss:// if none specified | Péter Szilágyi | 2017-03-20 | 1 | -10/+28 |
| | |||||
* | all: update light logs (and a few others) to the new model | Péter Szilágyi | 2017-03-03 | 1 | -19/+19 |
| | |||||
* | all: blidly swap out glog to our log15, logs need rework | Péter Szilágyi | 2017-02-23 | 1 | -21/+20 |
| | |||||
* | all: fix issues reported by honnef.co/go/simple/cmd/gosimple | Felix Lange | 2017-01-07 | 1 | -23/+6 |
| | |||||
* | all: gofmt -w -s | Felix Lange | 2017-01-06 | 1 | -7/+7 |
| | |||||
* | ethstats: implement block history retrievals | Péter Szilágyi | 2016-12-12 | 1 | -38/+190 |
| | |||||
* | ethstats: fix timestamps and add custom proto support | Péter Szilágyi | 2016-12-12 | 1 | -1/+8 |
| | |||||
* | ethstats: check if received event is valid | Bas van Kervel | 2016-12-01 | 1 | -1/+9 |
| | |||||
* | ethstats: don't drop concurrent head reports (mini forks) | Péter Szilágyi | 2016-11-29 | 1 | -16/+16 |
| | |||||
* | ethstats: report block miner, gas limit and gas consumption | Péter Szilágyi | 2016-11-29 | 1 | -6/+12 |
| | |||||
* | cmd, ethstats, les, mobile, params: native netstats (#3336) | Péter Szilágyi | 2016-11-25 | 1 | -0/+452 |