prepend kv store prefix to tx

This commit is contained in:
William Banfield
2022-08-31 10:56:58 -04:00
parent 92492dafaa
commit 122c6e99b9

View File

@@ -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
}