Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ir: lower default max_traceable_blocks to 17280 #2897

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Changelog for NeoFS Node
- neofs-cli allows several objects deletion at a time (#2774)
- `ObjectService.Put` server of in-container node places objects using new `ObjectService.Replicate` RPC (#2802)
- `ObjectService`'s `Put` and `Replicate` RPC handlers cache up to 1000 lists of container nodes (#2892)
- Default max_traceable_blocks Morph setting lowered to 17280 from 2102400 (#2897)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion config/example/ir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ morph:
path: ./db/morph.bolt # File system path to the storage. Ignored for 'inmemory' storage.
time_per_block: 1s # Optional time period (approximate) between two adjacent blocks. Defaults to 15s.
# Must not be negative
max_traceable_blocks: 2102400 # Optional length of the chain accessible to smart contracts. Defaults to 2102400.
max_traceable_blocks: 11520 # Optional length of the chain accessible to smart contracts. Defaults to 17280.
# Must not be greater than 4294967295
seed_nodes: # Optional list of existing nodes to communicate with over Neo P2P protocol. By default, node runs as standalone
# Same format as 'p2p.listen'
Expand Down
4 changes: 2 additions & 2 deletions pkg/innerring/internal/blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@

// Length of the chain accessible to smart contracts.
//
// Optional: defaults to 2102400.
// Optional: defaults to 17280.
TraceableChainLength uint32

// Maps hard-fork's name to the appearance chain height.
Expand Down Expand Up @@ -322,7 +322,7 @@
cfg.P2P.ProtoTickInterval = 2 * time.Second
}
if cfg.TraceableChainLength == 0 {
cfg.TraceableChainLength = 2102400
cfg.TraceableChainLength = 17280

Check warning on line 325 in pkg/innerring/internal/blockchain/blockchain.go

View check run for this annotation

Codecov / codecov/patch

pkg/innerring/internal/blockchain/blockchain.go#L325

Added line #L325 was not covered by tests
}
if cfg.P2P.Ping.Interval == 0 {
cfg.P2P.Ping.Interval = 30 * time.Second
Expand Down
Loading