From 47b80d19a08be601eb17b7426298d3a760b8f15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?colin=20axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Fri, 26 Feb 2021 17:06:41 +0100 Subject: [PATCH] update tendermint client to not prune light blocks (#437) --- relayer/tm-light-client.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/relayer/tm-light-client.go b/relayer/tm-light-client.go index f4bcd7375..b7bec3443 100644 --- a/relayer/tm-light-client.go +++ b/relayer/tm-light-client.go @@ -128,7 +128,9 @@ func (c *Chain) LightClientWithoutTrust(db dbm.DB) (*light.Client, error) { // NOTE: This requires adding them to the chain config []lightp.Provider{prov}, dbs.New(db, ""), - logger) + logger, + light.PruningSize(0), + ) } // 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 // NOTE: This requires adding them to the chain config []lightp.Provider{prov}, dbs.New(db, ""), - logger) + logger, + light.PruningSize(0), + ) } // LightClient initializes the light client for a given chain from the trusted store in the database