Skip to content

Commit b981e3a

Browse files
committed
add blockchain caching back
1 parent d2bbd3a commit b981e3a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

framework/.changeset/v0.7.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add caching for blockchain component back

framework/components/blockchain/blockchain.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ type Node struct {
5858

5959
// NewBlockchainNetwork this is an abstraction that can spin up various blockchain network simulators
6060
func NewBlockchainNetwork(in *Input) (*Output, error) {
61+
if in.Out != nil && in.Out.UseCache {
62+
return in.Out, nil
63+
}
6164
var out *Output
6265
var err error
6366
switch in.Type {

0 commit comments

Comments
 (0)