Skip to content

Commit 47b80d1

Browse files
authored
update tendermint client to not prune light blocks (#437)
1 parent f201839 commit 47b80d1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

relayer/tm-light-client.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ func (c *Chain) LightClientWithoutTrust(db dbm.DB) (*light.Client, error) {
128128
// NOTE: This requires adding them to the chain config
129129
[]lightp.Provider{prov},
130130
dbs.New(db, ""),
131-
logger)
131+
logger,
132+
light.PruningSize(0),
133+
)
132134
}
133135

134136
// LightClientWithTrust takes a header from the chain and attempts to add that header to the light
@@ -144,7 +146,9 @@ func (c *Chain) LightClientWithTrust(db dbm.DB, to light.TrustOptions) (*light.C
144146
// NOTE: This requires adding them to the chain config
145147
[]lightp.Provider{prov},
146148
dbs.New(db, ""),
147-
logger)
149+
logger,
150+
light.PruningSize(0),
151+
)
148152
}
149153

150154
// LightClient initializes the light client for a given chain from the trusted store in the database

0 commit comments

Comments
 (0)