Skip to content

Commit e7eafe3

Browse files
Dan LaineStephenButtolph
andauthored
Add caching to parsing the inner block in the proposervm (#1891)
Co-authored-by: Stephen <stephen@avalabs.org>
1 parent 310011d commit e7eafe3

File tree

6 files changed

+613
-6
lines changed

6 files changed

+613
-6
lines changed

snow/consensus/snowman/mock_block.go

Lines changed: 163 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vms/proposervm/state/block_state.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ import (
1717
"github.com/ava-labs/avalanchego/vms/proposervm/block"
1818
)
1919

20-
const (
21-
blockCacheSize = 8192
22-
)
20+
const blockCacheSize = 8192
2321

2422
var (
2523
errBlockWrongVersion = errors.New("wrong version")

0 commit comments

Comments
 (0)