Sam Kleinman
144af9a81a
rpc: use shorter path names for tests ( #6602 )
4 years ago
Sam Kleinman
bed58a749f
p2p: address audit issues with the peer manager ( #6603 )
4 years ago
Sam Kleinman
5f553bb3ee
changelog: update and regularize changelog entries ( #6594 )
4 years ago
Callum Waters
e8f38e3260
changelog: have a single friendly bug bounty reminder ( #6600 )
4 years ago
Callum Waters
6ade17997c
release: update changelog and version ( #6599 )
4 years ago
Sam Kleinman
a6b30faf35
libs/time: move types/time into libs ( #6595 )
4 years ago
Sam Kleinman
09a409df9c
libs/log: text logging format changes ( #6589 )
4 years ago
Sam Kleinman
d228afc548
p2p: avoid retry delay in error case ( #6591 )
4 years ago
Callum Waters
25bb556fee
p2p: increase queue size to 16MB ( #6588 )
4 years ago
Callum Waters
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
4 years ago
dependabot[bot]
7bc7de5092
build(deps): Bump github.com/spf13/viper from 1.7.1 to 1.8.0 ( #6586 )
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/viper
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Aleksandr Bezobchuk
7d961b55b2
state sync: tune request timeout and chunkers ( #6566 )
4 years ago
Sam Kleinman
886519e3ca
rpc: add subscription id to events ( #6386 )
Addresses #3931
4 years ago
Cuong Manh Le
8d0c38257e
test/fuzz: fix wrong path for some p2p fuzzing packages ( #6580 )
Updates #6557
4 years ago
Cuong Manh Le
10a41ae6c8
test/fuzz: fix wrong compile fuzzer command ( #6579 )
Updates #6557
4 years ago
Cuong Manh Le
e79262415c
test/fuzz: add current fuzzing to oss-fuzz-build script ( #6576 )
Updates #6557
4 years ago
Sam Kleinman
13b95e7127
consensus: skip all messages during sync ( #6577 )
Co-authored-by: Aleksandr Bezobchuk
4 years ago
dependabot[bot]
c4cf4d3012
build(deps): Bump github.com/rs/zerolog from 1.22.0 to 1.23.0 ( #6575 )
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog ) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/rs/zerolog/releases )
- [Commits](https://github.com/rs/zerolog/compare/v1.22.0...v1.23.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
JayT106
21536ac7a4
linter: linter checks non-ASCII identifiers ( #6574 )
Enabled the ASCII check linter
https://github.com/tdakkota/asciicheck
Closes #2801
4 years ago
JayT106
cb63ab4ac0
rpc: fix RPC client doesn't handle url's without ports ( #6507 )
4 years ago
Cuong Manh Le
66926d31ca
fuzz: initial support for fuzzing ( #6558 )
4 years ago
Callum Waters
74af343f28
statesync: tune backfill process ( #6565 )
This PR make some tweaks to backfill after running e2e tests:
- Separates sync and backfill as two distinct processes that the node calls. The reason is because if sync fails then the node should fail but if backfill fails it is still possible to proceed.
- Removes peers who don't have the block at a height from the local peer list. As the process goes backwards if a node doesn't have a block at a height they're likely pruning blocks and thus they won't have any prior ones either.
- Sleep when we've run out of peers, then try again.
4 years ago
JayT106
10fa151749
state/types: refactor makeBlock, makeBlocks and makeTxs ( #6567 )
Closes #3584
4 years ago
Callum Waters
2c81638787
e2e: fix looping problem while waiting ( #6568 )
4 years ago
JayT106
a456b71f1f
state: move pruneBlocks from consensus/state to state/execution ( #6541 )
state: move pruneBlocks function from consensus/state to state/execution
Closes #5414
4 years ago
Callum Waters
32bc399bdd
node: fix genesis on start up ( #6563 )
4 years ago
Cuong Manh Le
4e59575dc0
blockchain/v0: fix data race in blockchain channel ( #6518 )
There is a possible data race/panic between processBlockchainCh and
processPeerUpdates, since when we send to blockchainCh.Out in one
goroutine and close the channel in the other. The race is seen in some
Github Action runs.
This commit fix the race, by adding a peerUpdatesCh as a bridge between
processPeerUpdates and processBlockchainCh, so the former will send to
this channel, the later will listen and forward the message to
blockchainCh.Out channel.
Updates #6516
4 years ago
JayT106
d2b78ec09b
indexer: use INSERT ... ON CONFLICT in the psql eventsink insert functions ( #6556 )
4 years ago
dependabot[bot]
b824dd3b47
build(deps): Bump codecov/codecov-action from 1.5.0 to 1.5.2 ( #6559 )
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 1.5.0 to 1.5.2.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1.5.0...v1.5.2 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
4 years ago
dependabot[bot]
2b0955849e
build(deps): Bump github.com/btcsuite/btcd ( #6560 )
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd ) from 0.21.0-beta to 0.22.0-beta.
- [Release notes](https://github.com/btcsuite/btcd/releases )
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES )
- [Commits](https://github.com/btcsuite/btcd/compare/v0.21.0-beta...v0.22.0-beta )
---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Callum Waters
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
4 years ago
Callum Waters
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
4 years ago
dependabot[bot]
9c172a1be9
build(deps): Bump github.com/prometheus/client_golang ( #6552 )
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam Kleinman <garen@tychoish.com>
4 years ago
Marko
2f6141645b
metrics: change blocksize to a histogram ( #6549 )
## Description
Change block_size gauge to a histogram to observe block size overtime
This will help will see which chains have full blocks vs empty.
closes #5752
4 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago
Marko
31e7cdeeac
dep: remove IAVL dependency ( #6550 )
## Description
remove IAVL as a Tendermint dependency.
closes #5694
I dont think this needs a changelog entry.
4 years ago
Marko
7cc32f3f0f
docs: logger updates ( #6545 )
## Description
Update for logging changes
4 years ago
Aleksandr Bezobchuk
3635c7a382
logger: refactor Tendermint logger by using zerolog ( #6534 )
4 years ago
dependabot[bot]
b28887e839
build(deps): Bump rtCamp/action-slack-notify from 2.1.3 to 2.2.0 ( #6543 )
Bumps [rtCamp/action-slack-notify](https://github.com/rtCamp/action-slack-notify ) from 2.1.3 to 2.2.0.
- [Release notes](https://github.com/rtCamp/action-slack-notify/releases )
- [Commits](f565a63638
...12e36fc18b0689399306c2e0b3e0f2978b7f1ee7)
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Marko
eaa0468190
types: revert breaking change ( #6538 )
## Description
revert #5523 to avoid breaking changes
cc @greg-szabo
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
Marko
39ddfc24f4
test: add evidence hash testvectors ( #6536 )
## Description
Trying to debug a possible hashing issue, writing test vectors on 0.34 and then porting them to master to double-check it's not a hashing issue.
4 years ago
Sam Kleinman
663c0bba9c
rpc: decouple test fixtures from node implementation ( #6533 )
4 years ago
Callum Waters
618c945d54
simplify initialization of light client ( #6530 )
4 years ago
Marko
40fe4a3bf8
test: HeaderHash test vector ( #6531 )
## Decription
Tag teaming with callum on debugging, wrote this to test headerHash changes from 0.34 to master. Its useful going forward as well.
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
Cuong Manh Le
1f46a4c90e
p2p/conn: check for channel id overflow before processing receive msg ( #6522 )
Per tendermint spec, each Channel has a globally unique byte id, which
is mapped to uint8 in Go. However, the proto PacketMsg.ChannelID field
is declared as int32, and when receive the packet, we cast it to a byte
without checking for possible overflow. That leads to a malform packet
with invalid channel id is sent successfully.
To fix it, we just add a check for possible overflow, and return invalid
channel id error.
Fixed #6521
4 years ago
Marko
96db0ae84a
remove docs deployment ( #6524 )
4 years ago
Cuong Manh Le
915d9de91d
p2p/pex: reuse hash.Hasher per addrbook for speed ( #6509 )
By pre-creating the hasher, instead of creating new one everytime
addrbook.hash is called.
```
name old time/op new time/op delta
AddrBook_hash-8 181ns ±13% 80ns ± 1% -56.08% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
AddrBook_hash-8 216B ± 0% 8B ± 0% -96.30% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
AddrBook_hash-8 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
```
Fixed #6508
4 years ago