- Stabilize
account_id_in_function_call_permissionfeature: enforcing validity of account ids in function call permission. - Enable TIER1 peer discovery. Validator nodes are now exchanging the public addresses set in config. The TIER1 connections support (direct connections between validators) based on this discovery mechanism will be added soon.
use_db_migration_snapshotanddb_migration_snapshot_pathoptions are now deprecated. If they are set inconfig.jsonthe node will fail if migration needs to be performed. Usestore.migration_snapshotinstead to configure the behaviour #7486/statusresponse has now two more fields:node_public_keyandvalidator_public_key. Thenode_keyfield is now deprecated and should not be used since it confusingly holds validator key.- Added
near_peer_message_sent_by_type_bytesandnear_peer_message_sent_by_type_totalPrometheus metrics measuring size and number of messages sent to peers. near_peer_message_received_totalPrometheus metric is now deprecated. Instead of it aggregatenear_peer_message_received_by_type_totalmetric. For example, to get total rate of received messages usesum(rate(near_peer_message_received_by_type_total{...}[5m])).- Added
near_node_protocol_upgrade_voting_startPrometheus metric whose value is timestamp when voting for the next protocol version starts. - Few changes to
view_stateJSON RPC query:- The requset has now an optional
include_proofargument. When set totrue, response’sproofwill be populated. - The
proofwithin each value invalueslist of aview_stateresponse is now deprecated and will be removed in the future. Client code should ignore the field. - The
prooffield directly withinview_stateresponse is currently always sent even if proof has not been requested. In the future the field will be skipped in those cases. Clients should accept responses with this field missing (unless they setinclude_proof).
- The requset has now an optional
- Backtraces on panics are enabled by default, so you no longer need to set
RUST_BACKTRACE=1environmental variable. To disable backtraces, setRUST_BACKTRACE=0. - Enable receipt prefetching by default. This feature makes receipt processing
faster by parallelizing IO requests, which has been introduced in
#7590 and enabled by default
with #7661.
Configurable in
config.jsonusingstore.enable_receipt_prefetching. - neard cmd can now verify proofs from JSON files.
- In storage configuration, the value
trie_cache_capacitiesnow is no longer a hard limit but instead sets a memory consumption limit. For large trie nodes, the limits are close to equivalent. For small values, there can now fit more in the cache than previously. #7749 - New options
store.trie_cacheandstore.view_trie_cacheinconfig.jsonto set limits on the trie cache. Deprecates the never announcedstore.trie_cache_capacitiesoption which was mentioned in previous change. #7578 - Tracing of work across actix workers within a process: #7866, #7819, #7773.
- Scope of collected tracing information can be configured at run-time: #7701.
- Attach node's
chain_id,node_id, andaccount_idvalues to tracing information: #7711. - Change exporter of tracing information from
opentelemetry-jaegertoopentelemetry-otlp: #7563.
- Stabilized
protocol_feature_chunk_only_producers. Validators will now be assigned to blocks and chunks separately. - The validator uptime kickout threshold has been reduced to 80%
- Edge nonces between peers can now optionally indicate an expiration time
- The logic around forwarding chunks to validators is improved
- Approvals and partial encoded chunks are now sent multiple times, which should reduce stalls due to lost approvals when the network is under high load
- We now keep a list of "TIER1" accounts (validators) for whom latency/reliability of messages routed through the network is critical
- /debug HTTP page has been improved
- Messages aren't routed through peers that are too far behind
- Log lines printed every 10 seconds are now less expensive to compute
- message broadcasts have been improved/optimized
network.external_addressfield in config.json file is deprecated. In fact it has never been used and only served to confuse everyone #7300- Due to increasing state size, improved shard cache for Trie nodes to put more nodes in memory. Requires 3 GB more RAM #7429
- Stabilized
alt_bn128_g1_multiexp,alt_bn128_g1_sum,alt_bn128_pairing_checkhost functions #6813.
- Added
pathoption toStoreConfigwhich makes location to the RocksDB configurable viaconfig.jsonfile (atstore.pathpath) rather than being hard-coded todatadirectory in neard home directory #6938 - Removed
testnetalias forlocalnetcommand; it’s been deprecated since 1.24 #7033 - Removed undocumented
unsafe_reset_allandunsafe_reset_datacommands; they were deprecated since 1.25 - Key files can use
private_keyfield instead ofsecret_keynow; this improves interoperability with near cli which uses the former name #7030 - Latency of network messages is now measured #7050
- Introduced protobuf encoding as the new network protocol. Borsh support will be removed in two releases as per normal protocol upgrade policies #6672
- Added
near_peer_message_received_by_type_bytes#6661 andnear_dropped_message_by_type_and_reason_count#6678 metrics. - Removed
near_<msg-type>_{total,bytes}#6661,near_<msg-type>_dropped,near_drop_message_unknown_accountandnear_dropped_messages_count#6678 metrics. - Added
near_action_called_countmetric [#6679]((near#6679) - Removed
near_action_<action-type>_totalmetrics [#6679]((near#6679) - Added
near_build_infometric which exports neard’s build information #6680 - Make it possible to update logging at runtime: #6665
- Use correct cost in gas profile for adding function call key #6749
- Enable access key nonce range for implicit accounts to prevent tx hash collisions #5482
- Include
promise_batch_action_function_call_weighthost function on the runtime #6285 #6536 - Increase deployment cost #6397
- Limit the number of locals per contract to 1_000_000
- Ensure caching all nodes in the chunk for which touching trie node cost was charged, reduce cost of future reads in a chunk #6628
- Lower storage key limit to 2 KiB
- Switch to LZ4+ZSTD compression from Snappy in RocksDB #6365
- Moved Client Actor to separate thread - should improve performance #6333
- Safe DB migrations using RocksDB checkpoints #6282
- NEP205: Configurable start of protocol upgrade voting #6309
- Make max_open_files and col_state_cache_size parameters configurable #6584
- Make RocksDB block_size configurable #6631
- Increase default max_open_files RocksDB parameter from 512 to 10k #6607
- Use kebab-case names for neard subcommands to make them consistent with flag names. snake_case names are still valid for existing subcommands but kebab-case will be used for new commands.
max_gas_burnthas been increased to 300.
- More Prometheus metrics related to epoch, sync state, node version, chunk fullness and missing chunks have been added.
- Progress bar is now displayed when downloading
config.jsonandgenesis.json. - Status line printed in logs by
neardis now more descriptive.
view_stateis now a command ofneard;state-vieweris no longer a separate binary.RUST_LOGenvironment variable is now correctly respected.NetworkConfig::verifywill now fail if configuration is invalid rather than printing error and continuing.- Fixed a minor bug which resulted in DB Not Found errors when requesting chunks.
- Updated to wasmer-near 2.2.0 which fixes a potential crash and improves cost estimator working.
neard initwill no longer override node or validator private keys.- Rosetta RPC now populates
related_transactionsfield. - Rosetta RPC support is now compiled in by default. The feature still needs to be explicitly turned on and is experimental.
- Rosetta RPC /network/status end point correctly works on non-archival nodes.
unsafe_reset_allandunsafe_reset_datacommands are now deprecated. Usermexplicitly instead.
- Enable access key nonce range for implicit accounts to prevent tx hash collisions.
- Upgraded our version of pwasm-utils to 0.18 -- the old one severely undercounted stack usage in some cases.
- Fix a bug in chunk requesting where validator might request chunks even if parent block hasn’t been processed yet.
- Fix memory leak in near-network.
- Change block sync to request 5 blocks at a time
- Change NUM_ORPHAN_ANCESTORS_CHECK to 3
- Further lower regular_op_cost from 2_207_874 to 822_756.
- Limit number of wasm functions in one contract to 10_000. #4954
- Add block header v3, required by new validator selection algorithm
- Move to new validator selection and sampling algorithm. Now we would be able to use all available seats. First step to enable chunk only producers.
- Increase RocksDB cache size to 512 MB for state column to speed up blocks processing #5212
- Upgrade from Wasmer 0 to Wasmer 2, bringing better performance and reliability. #4934
- Lower regular_op_cost (execution of a single WASM instruction) from 3_856_371 to 2_207_874. #4979
- Lower data receipt cost and base cost of
ecrecoverhost function. - Upgrade from one shard to four shards (Simple Nightshade Phase 0)
- Fix some receipts that were stuck previously due to #4228. #4248
- Improve contract module serialization/deserialization speed by 30% #4448
- Make
AccountIdstrictly typed and correct by construction #4621 - Address test dependency issue #4556 #4606. #4622.
- Fix neard shutdown issue #4429. #4442
- Introduce new host functions
ecrecoverandripemd160. #4380 - Make
Accounta versioned struct. #4089 - Limit the size of transactions to 4MB. #4107
- Cap maximum gas price to 20x of minimum gas price. #4308, #4382
- Fix
storageUsagefor accounts that were affected by #3824. #4272 - Fix a bug in computation of gas for refunds. #4405