From 122c6e99b9b3b2edd3a54f0e326e6efdc20d6f76 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Wed, 31 Aug 2022 10:56:58 -0400 Subject: [PATCH] prepend kv store prefix to tx --- test/loadtime/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/loadtime/main.go b/test/loadtime/main.go index ce28c4445..75d66c58a 100644 --- a/test/loadtime/main.go +++ b/test/loadtime/main.go @@ -82,5 +82,8 @@ func (c *TxGenerator) GenerateTx() ([]byte, error) { if err != nil { return nil, err } - return b, nil + + // prepend a single key so that the kv store only ever stores a single + // transaction instead of storing all tx and ballooning in size. + return append([]byte("a="), b...), nil }