nimbus-eth1/execution_chain/db/aristo/aristo_persist.nim

33 lines
1.0 KiB
Nim
Raw Normal View History

# nimbus-eth1
2025-02-17 02:51:56 +01:00
# Copyright (c) 2023-2025 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed
# except according to those terms.
## Aristo DB -- Transaction interface
## ==================================
##
{.push raises: [].}
import
./[aristo_desc, aristo_tx_frame]
# ------------------------------------------------------------------------------
# Public functions: save to database
# ------------------------------------------------------------------------------
proc persist*(
2025-02-17 02:51:56 +01:00
db: AristoDbRef;
batch: PutHdlRef;
2025-02-17 02:51:56 +01:00
txFrame: AristoTxRef;
) =
2025-02-17 02:51:56 +01:00
db.txFramePersist(batch, txFrame)
# ------------------------------------------------------------------------------
# End
# ------------------------------------------------------------------------------