Introduction
Architecture
1.
Overview
2.
How neard works
2.1.
How Sync Works
2.2.
Garbage Collection
2.3.
How Epoch Works
2.4.
Transaction Routing
2.5.
Transactions And Receipts
2.6.
Cross shard transactions - deep dive
2.7.
Gas
2.8.
Receipt Congestion
2.9.
Meta transactions
2.10.
Serialization: Borsh, Json, ProtoBuf
2.11.
Proofs
2.12.
Resharding V2
3.
How neard will work
3.1.
Catchup and state sync improvements
3.2.
Malicious producers and phase 2
4.
Storage
4.1.
Storage Request Flow
4.2.
Trie Storage
4.3.
Database Format
4.4.
Flat Storage
5.
Network
6.
Gas Cost Parameters
6.1.
Parameter Definitions
6.2.
Gas Profile
6.3.
Runtime Parameter Estimator
Practices
7.
Overview
8.
Rust 🦀
9.
Workflows
9.1.
Run a Node
9.2.
Deploy a Contract
9.3.
Run Gas Estimations
9.4.
Localnet on many machines
9.5.
IO tracing
9.6.
Profiling
9.7.
Working with OpenTelemetry Traces
10.
Code Style
11.
Documentation
12.
Tracking Issues
13.
Security Vulnerabilities
14.
Fast Builds
15.
Testing
15.1.
Python Tests
15.2.
Testing Utils
15.3.
Test Coverage
16.
Protocol Upgrade
Advanced configuration
17.
Networking
Custom test networks
18.
Starting a network from mainnet state
Misc
19.
Overview
20.
State Sync Dump
21.
Archival node - recovery of missing data
Light (default)
Rust
Coal
Navy
Ayu
Guide to Nearcore Development
Overview
This chapter describes various development processes and best practices employed at nearcore.