Aleksandr Bezobchuk
414130aee1
pubsub: Refactor Event Subscription ( #6634 )
4 years ago
JayT106
9d0817b308
Revert "rpc: re-index missing events ( #6535 )" ( #6631 )
This reverts commit 167fa738a3
.
4 years ago
JayT106
167fa738a3
rpc: re-index missing events ( #6535 )
4 years ago
crypto-facs
10d174adcc
rpc: Add `TotalGasUsed` to `block_results` response ( #6615 )
Closes #6551
Simple PR to add the total gas used in the block by adding the gas used in all the transactions.
This adds a `TotalGasUsed` field to `coretypes.ResultBlockResults`.
Its my first PR to the repo so let me know if there is anything I am missing!
@fedekunze In case you want to take a look
4 years ago
Sam Kleinman
9ffa7e8a2b
types: move NodeInfo from p2p ( #6618 )
4 years ago
JayT106
2cc872543b
rpc: add max peer block height into /status rpc call ( #6610 )
use `maxPeerBlockHeight` information to show the current network's best height.
Closes #3983
Relate to #3365
ref: the`highestBlock` in the response of `eth.isSyncing` call
https://web3js.readthedocs.io/en/v1.3.4/web3-eth.html#issyncing
4 years ago
Sam Kleinman
144af9a81a
rpc: use shorter path names for tests ( #6602 )
4 years ago
Callum Waters
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
4 years ago
Sam Kleinman
886519e3ca
rpc: add subscription id to events ( #6386 )
Addresses #3931
4 years ago
JayT106
cb63ab4ac0
rpc: fix RPC client doesn't handle url's without ports ( #6507 )
4 years ago
Callum Waters
32bc399bdd
node: fix genesis on start up ( #6563 )
4 years ago
Callum Waters
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
4 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago
Aleksandr Bezobchuk
3635c7a382
logger: refactor Tendermint logger by using zerolog ( #6534 )
4 years ago
Sam Kleinman
00c284d9d7
node: change package interface ( #6540 )
4 years ago
Callum Waters
08b134ddbc
ws: parse remote addrs with trailing dash ( #6537 )
4 years ago
Sam Kleinman
663c0bba9c
rpc: decouple test fixtures from node implementation ( #6533 )
4 years ago
Aleksandr Bezobchuk
7ec123c968
improvement: update TxInfo ( #6529 )
Remove `Context` from the `TxInfo` type and instead require the caller to pass a `Context` to `CheckTx` which is idiomatic.
closes : #6497
4 years ago
Aleksandr Bezobchuk
1e4bc04cd6
mempool: v1 implementation ( #6466 )
4 years ago
JayT106
711a718162
config/indexer: custom event indexing ( #6411 )
4 years ago
Marko
719e028e00
libs: internalize some packages ( #6366 )
## Description
Internalize some libs. This reduces the amount ot public API tendermint is supporting. The moved libraries are mainly ones that are used within Tendermint-core.
4 years ago
Sam Kleinman
d9134063e7
rpc: add chunked rpc interface ( #6445 )
4 years ago
Sam Kleinman
fdd506a126
rpc: clean up client global state in tests ( #6438 )
4 years ago
Sam Kleinman
0b0914b3df
rpc: remove global environment ( #6426 )
4 years ago
Sam Kleinman
0407cd5258
github: fix linter configuration errors and occluded errors ( #6400 )
4 years ago
Ismail Khoffi
ee70430255
libs: remove most of libs/rand ( #6364 )
4 years ago
JayT106
43eacd159f
state/indexer: reconstruct indexer, move txindex into the indexer package ( #6382 )
4 years ago
JayT106
ca7dbea05b
Set cache control in the HTTP-RPC response header ( #6265 )
4 years ago
gotjoshua
f563bd4ff1
RPC: don't cap page size in unsafe mode ( #6329 )
4 years ago
Callum Waters
b272746444
Merge pull request from GHSA-f3w5-v9xx-rp8p
* add time warping lunatic attack test
* create too high and connecton refused errors and add to the light client provider
* add height check to provider
* introduce block lag
* add detection logic for processing forward lunatic attack
* add node-side verification logic
* clean up tests and formatting
* update adr's
* update testing
* fix fetching the latest block
* format
* update changelog
* implement suggestions
* modify ADR's
* format
* clean up node evidence verification
4 years ago
Sam Kleinman
6d9372bd39
test: improve cleanup for data and disk use ( #6311 )
4 years ago
Frojdi Dymylja
9ecfcc93a6
fix: jsonrpc url parsing and dial function ( #6264 )
This PR fixes how the jsonrpc parses the URL, and how the dial function connects to the RPC.
Closes: https://github.com/tendermint/tendermint/issues/6260
4 years ago
Aleksandr Bezobchuk
003f394512
rpc: index block events to support block event queries ( #6226 )
4 years ago
Callum Waters
9f7051d38a
node: implement tendermint modes ( #6241 )
Co-authored-by: dongsam <dongsamb@gmail.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
4 years ago
Anton Kaliaev
00b9524168
rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) ( #6204 )
instead of panicking
Closes #5529
4 years ago
Marko
8c539f7c2b
logs: cleanup ( #6198 )
4 years ago
Aleksandr Bezobchuk
be88fd3e63
mempool/rpc: log grooming ( #6201 )
4 years ago
Anton Kaliaev
fe4e97afe0
rpc/jsonrpc: Unmarshal RPCRequest correctly ( #6191 )
i.e. without double pointer. With double pointer, it was possible to
submit `null` value, which will crash the server.
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x189ddc0]
goroutine 1 [running]:
github.com/tendermint/tendermint/rpc/jsonrpc/types.(*RPCRequest).UnmarshalJSON(0xc0000147e0, 0xc00029f201, 0x4, 0x1ff, 0x883baa0, 0xc0000147e0)
/Users/anton/go/src/github.com/tendermint/tendermint/rpc/jsonrpc/types/types.go:70 +0x100
encoding/json.(*decodeState).literalStore(0xc000216bb0, 0xc00029f201, 0x4, 0x1ff, 0x1998800, 0xc0000147e0, 0x199, 0xc000231700, 0x10e0a5e, 0x197)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:860 +0x30ce
encoding/json.(*decodeState).value(0xc000216bb0, 0x1998800, 0xc0000147e0, 0x199, 0x1998800, 0xc0000147e0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:384 +0x40c
encoding/json.(*decodeState).array(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0xc000216bd8, 0x10e405b)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:558 +0x365
encoding/json.(*decodeState).value(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0x16, 0x6e)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:360 +0x22f
encoding/json.(*decodeState).unmarshal(0xc000216bb0, 0x18df040, 0xc0001be540, 0xc000216bd8, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:180 +0x2c9
encoding/json.Unmarshal(0xc00029f200, 0x6, 0x200, 0x18df040, 0xc0001be540, 0x0, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:107 +0x15d
```
4 years ago
Anton Kaliaev
089b314bdb
test/fuzz: fix PEX reactor test ( #6188 )
* test/fuzz: fix PEX reactor test
* .github: [fuzz] increase retention period for crashers
4 years ago
Anton Kaliaev
e9e5026dac
rpc/client/http: drop endpoint arg from New and add WSOptions ( #6176 )
also
- replace `MaxReconnectAttempts`, `ReadWait`, `WriteWait` and `PingPeriod` options with `WSOptions` in `WSClient` (rpc/jsonrpc/client/ws_client.go).
- set default write wait to 10s for `WSClient`(rpc/jsonrpc/client/ws_client.go)
- unexpose `WSEvents`(rpc/client/http.go)
Closes #6162
4 years ago
Anton Kaliaev
0f4124fb54
rpc/client/http: Do not drop events even if the `out` channel is full ( #6163 )
```
// unbuffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx and account.name=Jack", 0)
// buffered
out, err := httpClient.Subscribe(ctx, "event.type=NewTx AND account.name=Jack", 20)
```
Before: when the `out` channel is buffered and becomes full, we drop an event (+ log the error)
After: when the `out` channel is buffered and becomes full, we block
**Before it was not apparent to the app when an event was dropped (looking at the logs is manual task). After this PR, if the user does not read from `out` on 1 subscription, all other subscriptions will be stuck too.**
Closes #6161
4 years ago
Anton Kaliaev
c1ca749afa
rpc: change default sorting to desc for `/tx_search` results ( #6168 )
Closes #6155
4 years ago
Callum Waters
29360f955c
light: improve timeout functionality ( #6145 )
4 years ago
Bipul Prasad
90c290ac52
rpc: standardize error codes ( #6019 )
4 years ago
Callum Waters
162f67cf26
correct spelling to US english ( #6077 )
4 years ago
Anton Kaliaev
1cd9bdb80b
light/provider/http: fix Validators ( #6022 )
Closes #6010
4 years ago
Marko
1f01e5d726
params: remove blockTimeIota ( #5987 )
## Description
- removes blocktimeiota
- merges block params in abci and core state
- spec change: https://github.com/tendermint/spec/pull/248
Closes : #5939
4 years ago
Marko
70bb8cc8b7
proto: seperate native and proto types ( #5994 )
## Description
Separate protobuf and domain types. We should avoid using protobuf in our core logic.
ref #5460
4 years ago
Erik Grinaker
f54f80bf0d
test: don't use foo-bar.net in TestHTTPClientMakeHTTPDialer ( #5997 )
This test relied on connecting to the external site `foo-bar.net`, and (predictably) the site went down and broke all of our CI runs. This changes it to use local HTTP servers instead.
4 years ago
Marko
eaa948ab7d
proto: bump gogoproto (1.3.2) ( #5886 )
## Description
- bump gogoproto (1.3.2)
- regenerate proto files
Closes: #XXX
4 years ago