mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
13 KiB
13 KiB
Unreleased Changes
vX.X
Special thanks to external contributors on this release:
Friendly reminder: We have a bug bounty program.
BREAKING CHANGES
-
CLI/RPC/Config
- [pubsub/events] #6634 The
ResultEvent.Eventsfield is now of type[]abci.Eventpreserving event order instead ofmap[string][]string. (@alexanderbez) - [config] #5598 The
test_fuzzandtest_fuzz_configP2P settings have been removed. (@erikgrinaker) - [config] #5728
fast_sync = "v1"is no longer supported (@melekes) - [cli] #5772
gen_node_keyprints JSON-encodedNodeKeyrather than ID and does not save it tonode_key.json(@melekes) - [cli] #5777 use hyphen-case instead of snake_case for all cli commands and config parameters (@cmwaters)
- [rpc] #6019 standardise RPC errors and return the correct status code (@bipulprasad & @cmwaters)
- [rpc] #6168 Change default sorting to desc for
/tx_searchresults (@melekes) - [cli] #6282 User must specify the node mode when using
tendermint init(@cmwaters) - [state/indexer] #6382 reconstruct indexer, move txindex into the indexer package (@JayT106)
- [cli] #6372 Introduce
BootstrapPeersas part of the new p2p stack. Peers to be connected on startup (@cmwaters) - [config] #6462 Move
PrivValidatorconfiguration out ofBaseConfiginto its own section. (@tychoish) - [rpc] #6610 Add MaxPeerBlockHeight into /status rpc call (@JayT106)
- [fastsync/rpc] #6620 Add TotalSyncedTime & RemainingTime to SyncInfo in /status RPC (@JayT106)
- [rpc/grpc] #6725 Mark gRPC in the RPC layer as deprecated.
- [blockchain/v2] #6730 Fast Sync v2 is deprecated, please use v0
- [rpc] #6820 Update RPC methods to reflect changes in the p2p layer, disabling support for
UnsafeDialPeersandUnsafeDialPeerswhen used with the new p2p layer, and changing the response format of the peer list inNetInfofor all users. - [cli] #6854 Remove deprecated snake case commands. (@tychoish)
- [pubsub/events] #6634 The
-
Apps
- [ABCI] #6408 Change the
keyandvaluefields from[]bytetostringin theEventAttributetype. (@alexanderbez) - [ABCI] #5447 Remove
SetOptionmethod fromABCI.Clientinterface - [ABCI] #5447 Reset
Oneofindexes forRequestandResponse. - [ABCI] #5818 Use protoio for msg length delimitation. Migrates from int64 to uint64 length delimiters.
- [ABCI] #3546 Add
mempool_errorfield toResponseCheckTx. This field will contain an error string if Tendermint encountered an error while adding a transaction to the mempool. (@williambanfield) - [Version] #6494
TMCoreSemVerhas been renamed toTMVersion.- It is not required any longer to set ldflags to set version strings
- [abci/counter] #6684 Delete counter example app
- [ABCI] #6408 Change the
-
P2P Protocol
-
Go API
- [pubsub] #6634 The
Query#Matchesmethod along with other pubsub methods, now accepts a[]abci.Eventinstead ofmap[string][]string. (@alexanderbez) - [p2p] #6618 Move
p2p.NodeInfointotypesto support use of the SDK. (@tychoish) - [p2p] #6583 Make
p2p.NodeIDandp2p.NetAddressexported types to support their use in the RPC layer. (@tychoish) - [node] #6540 Reduce surface area of the
nodepackage by making most of the implementation details private. (@tychoish) - [p2p] #6547 Move the entire
p2ppackage and all reactor implementations intointernal. (@tychoish) - [libs/log] #6534 Remove the existing custom Tendermint logger backed by go-kit. The logging interface,
Logger, remains. Tendermint still provides a default logger backed by the performant zerolog logger. (@alexanderbez) - [libs/time] #6495 Move types/time to libs/time to improve consistency. (@tychoish)
- [mempool] #6529 The
Contextfield has been removed from theTxInfotype.CheckTxnow requires aContextargument. (@alexanderbez) - [abci/client, proxy] #5673
Asyncfuncs return an error,SyncandAsyncfuncs acceptcontext.Context(@melekes) - [p2p] Remove unused function
MakePoWTarget. (@erikgrinaker) - [libs/bits] #5720 Validate
BitArrayinFromProto, which now returns an error (@melekes) - [proto/p2p] Rename
DefaultNodeInfoandDefaultNodeInfoOthertoNodeInfoandNodeInfoOther(@erikgrinaker) - [proto/p2p] Rename
NodeInfo.default_node_idtonode_id(@erikgrinaker) - [libs/os] Kill() and {Must,}{Read,Write}File() functions have been removed. (@alessio)
- [store] #5848 Remove block store state in favor of using the db iterators directly (@cmwaters)
- [state] #5864 Use an iterator when pruning state (@cmwaters)
- [types] #6023 Remove
tm2pb.Header,tm2pb.BlockID,tm2pb.PartSetHeaderandtm2pb.NewValidatorUpdate.- Each of the above types has a
ToProtoandFromProtomethod or function which replaced this logic.
- Each of the above types has a
- [light] #6054 Move
MaxRetryAttemptoption from client to provider.NewWithOptionsnow sets the max retry attempts and timeouts (@cmwaters)
- [all] #6077 Change spelling from British English to American (@cmwaters)
- Rename "Subscription.Cancelled()" to "Subscription.Canceled()" in libs/pubsub
- Rename "behaviour" pkg to "behavior" and internalized it in blockchain v2
- [rpc/client/http] #6176 Remove
endpointarg fromNew,NewWithTimeoutandNewWithClient(@melekes) - [rpc/client/http] #6176 Unexpose
WSEvents(@melekes) - [rpc/jsonrpc/client/ws_client] #6176
NewWSno longer accepts options (useNewWSWithOptionsandOnReconnectfuncs to configure the client) (@melekes) - [internal/libs] #6366 Move
autofile,clist,fail,flowrate,protoio,sync,tempfile,testandtimerlib packages to an internal folder - [libs/rand] #6364 Remove most of libs/rand in favour of standard lib's
math/rand(@liamsi) - [mempool] #6466 The original mempool reactor has been versioned as
v0and moved to a sub-package under the rootmempoolpackage. Some core types have been kept in themempoolpackage such asTxCacheand it's implementations, theMempoolinterface itself andTxInfo. (@alexanderbez) - [crypto/sr25519] #6526 Do not re-execute the Ed25519-style key derivation step when doing signing and verification. The derivation is now done once and only once. This breaks
sr25519.GenPrivKeyFromSecretoutput compatibility. (@Yawning) - [types] #6627 Move
NodeKeyto types to make the type public. - [config] #6627 Extend
configto contain methodsLoadNodeKeyIDandLoadorGenNodeKeyID - [blocksync] #6755 Rename
FastSyncandBlockchainpackage toBlockSync(@cmwaters)
- [pubsub] #6634 The
-
Blockchain Protocol
-
Data Storage
- [store/state/evidence/light] #5771 Use an order-preserving varint key encoding (@cmwaters)
- [mempool] #6396 Remove mempool's write ahead log (WAL), (previously unused by the tendermint code). (@tychoish)
- [state] #6541 Move pruneBlocks from consensus/state to state/execution. (@JayT106)
-
Tooling
- [tools] #6498 Set OS home dir to instead of the hardcoded PATH. (@JayT106)
- [cli/indexer] #6676 Reindex events command line tooling. (@JayT106)
FEATURES
- [config] Add
--modeflag and config variable. See ADR-52 @dongsam - [rpc] #6329 Don't cap page size in unsafe mode (@gotjoshua, @cmwaters)
- [pex] #6305 v2 pex reactor with backwards compatability. Introduces two new pex messages to accomodate for the new p2p stack. Removes the notion of seeds and crawling. All peer exchange reactors behave the same. (@cmwaters)
- [crypto] #6376 Enable sr25519 as a validator key
- [mempool] #6466 Introduction of a prioritized mempool. (@alexanderbez)
PriorityandSenderhave been introduced into theResponseCheckTxtype, where theprioritywill determine the prioritization of the transaction when a proposer reaps transactions for a block proposal. Thesenderfield acts as an index.- Operators may toggle between the legacy mempool reactor,
v0, and the new prioritized reactor,v1, by setting themempool.versionconfiguration, wherev1is the default configuration. - Applications that do not specify a priority, i.e. zero, will have transactions reaped by the order in which they are received by the node.
- Transactions are gossiped in FIFO order as they are in
v0.
- [config/indexer] #6411 Introduce support for custom event indexing data sources, specifically PostgreSQL. (@JayT106)
- [fastsync/event] #6619 Emit fastsync status event when switching consensus/fastsync (@JayT106)
- [statesync/event] #6700 Emit statesync status start/end event (@JayT106)
IMPROVEMENTS
- [libs/log] Console log formatting changes as a result of #6534 and #6589. (@tychoish)
- [statesync] #6566 Allow state sync fetchers and request timeout to be configurable. (@alexanderbez)
- [types] #6478 Add
block_idtonewblockevent (@jeebster) - [crypto/ed25519] #5632 Adopt zip215
ed25519verification. (@marbar3778) - [crypto/ed25519] #6526 Use curve25519-voi for
ed25519signing and verification. (@Yawning) - [crypto/sr25519] #6526 Use curve25519-voi for
sr25519signing and verification. (@Yawning) - [privval] #5603 Add
--keytoinit,gen_validator,testnet&unsafe_reset_priv_validatorfor use in generatingsecp256k1keys. - [privval] #5725 Add gRPC support to private validator.
- [privval] #5876
tendermint show-validatorwill query the remote signer if gRPC is being used (@marbar3778) - [abci/client] #5673
Asyncrequests return an error if queue is full (@melekes) - [mempool] #5673 Cancel
CheckTxrequests if RPC client disconnects or times out (@melekes) - [abci] #5706 Added
AbciVersiontoRequestInfoallowing applications to check ABCI version when connecting to Tendermint. (@marbar3778) - [blockchain/v1] #5728 Remove in favor of v2 (@melekes)
- [blockchain/v0] #5741 Relax termination conditions and increase sync timeout (@melekes)
- [cli] #5772
gen_node_keyoutput now contains node ID (idfield) (@melekes) - [blockchain/v2] #5774 Send status request when new peer joins (@melekes)
- [consensus] #5792 Deprecates the
time_iota_msconsensus parameter, to reduce the bug surface. The parameter is no longer used. (@valardragon) - [store] #5888 store.SaveBlock saves using batches instead of transactions for now to improve ACID properties. This is a quick fix for underlying issues around tm-db and ACID guarantees. (@githubsands)
- [consensus] #5987 Remove
time_iota_msfrom consensus params. Mergetmproto.ConsensusParamsandabci.ConsensusParams. (@marbar3778) - [types] #5994 Reduce the use of protobuf types in core logic. (@marbar3778)
ConsensusParams,BlockParams,ValidatorParams,EvidenceParams,VersionParams,sm.Versionandversion.Consensushave become native types. They still utilize protobuf when being sent over the wire or written to disk.
- [rpc/client/http] #6163 Do not drop events even if the
outchannel is full (@melekes) - [node] #6059 Validate and complete genesis doc before saving to state store (@silasdavis)
- [state] #6067 Batch save state data (@githubsands & @cmwaters)
- [crypto] #6120 Implement batch verification interface for ed25519 and sr25519. (@marbar3778)
- [types] #6120 use batch verification for verifying commits signatures.
- If the key type supports the batch verification API it will try to batch verify. If the verification fails we will single verify each signature.
- [privval/file] #6185 Return error on
LoadFilePV,LoadFilePVEmptyState. Allows for better programmatic control of Tendermint. - [privval] #6240 Add
context.Contextto privval interface. - [rpc] #6265 set cache control in http-rpc response header (@JayT106)
- [statesync] #6378 Retry requests for snapshots and add a minimum discovery time (5s) for new snapshots.
- [node/state] #6370 graceful shutdown in the consensus reactor (@JayT106)
- [crypto/merkle] #6443 Improve HashAlternatives performance (@cuonglm)
- [crypto/merkle] #6513 Optimize HashAlternatives (@marbar3778)
- [p2p/pex] #6509 Improve addrBook.hash performance (@cuonglm)
- [consensus/metrics] #6549 Change block_size gauge to a histogram for better observability over time (@marbar3778)
- [statesync] #6587 Increase chunk priority and re-request chunks that don't arrive (@cmwaters)
- [state/privval] #6578 No GetPubKey retry beyond the proposal/voting window (@JayT106)
- [rpc] #6615 Add TotalGasUsed to block_results response (@crypto-facs)
- [cmd/tendermint/commands] #6623 replace
$HOME/.some/test/dirwitht.TempDir(@tanyabouman)
BUG FIXES
- [privval] #5638 Increase read/write timeout to 5s and calculate ping interval based on it (@JoeKash)
- [blockchain/v1] #5701 Handle peers without blocks (@melekes)
- [blockchain/v1] #5711 Fix deadlock (@melekes)
- [evidence] #6375 Fix bug with inconsistent LightClientAttackEvidence hashing (cmwaters)
- [rpc] #6507 Ensure RPC client can handle URLs without ports (@JayT106)
- [statesync] #6463 Adds Reverse Sync feature to fetch historical light blocks after state sync in order to verify any evidence (@cmwaters)
- [fastsync] #6590 Update the metrics during fast-sync (@JayT106)
- [gitignore] #6668 Fix gitignore of abci-cli (@tanyabouman)