Skip to content

Commit

Permalink
Fixed ride-runner (#3958)
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot authored Jul 9, 2024
1 parent 2b026e9 commit 69db920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ride-runner/src/main/resources/ride-runner-internal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ waves {
delay-before-force-restart-blockchain-updates = 1 s

db {
enable-statistics = off
default-column-family {
bits-per-key = 12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.wavesplatform.state.{AccountScriptInfo, AssetDescription, AssetInfo,
import com.wavesplatform.transaction.serialization.impl.DataTxSerializer
import com.wavesplatform.transaction.{Asset, AssetIdLength, Transaction}
import org.rocksdb.ColumnFamilyHandle
import com.wavesplatform.protobuf.snapshot.TransactionStatus as PBStatus

import java.io.{ByteArrayOutputStream, OutputStream}
import java.nio.ByteBuffer
Expand Down Expand Up @@ -212,7 +213,8 @@ object KvPairs {
implicit val dataEntryAsBytes: AsBytes[DataEntry[?]] =
AsBytes.mk[DataEntry[?]]((os, x) => os.write(DataTxSerializer.serializeEntry(x)), DataTxSerializer.parseEntry)

implicit val txStatusAsBytes: AsBytes[TxMeta.Status] = ???
implicit val txStatusAsBytes: AsBytes[TxMeta.Status] =
AsBytes.mk[TxMeta.Status]((os, st) => os.write(st.protobuf.value.toByte), r => TxMeta.Status.fromProtobuf(PBStatus.fromValue(r.get)))

implicit val txMetaAsBytes: AsBytes[TxMeta] = AsBytes[(state.Height, TxMeta.Status, Long)].transform[TxMeta](
Function.tupled(TxMeta.apply),
Expand Down

0 comments on commit 69db920

Please sign in to comment.