Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable transaction generator in `db-synthesizer' #1214

Draft
wants to merge 1 commit into
base: utxo-hd-9.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ type GenTxs blk mk = SlotNo -> TickedLedgerState blk mk -> IO [Validated (GenTx
-- For an extensive commentary of the forging loop, see there.

runForge ::
forall blk mk.
forall blk.
( LedgerSupportsProtocol blk )
=> EpochSize
-> SlotNo
-> ForgeLimit
-> ChainDB IO blk
-> [BlockForging IO blk]
-> TopLevelConfig blk
-> GenTxs blk mk
-> GenTxs blk DiffMK
-> IO ForgeResult
runForge epochSize_ nextSlot opts chainDB blockForging cfg genTxs = do
putStrLn $ "--> epoch size: " ++ show epochSize_
Expand Down Expand Up @@ -168,7 +168,7 @@ runForge epochSize_ nextSlot opts chainDB blockForging cfg genTxs = do

-- Let the caller generate transactions
-- TODO @js re-enable!
txs <- lift $ genTxs currentSlot $ undefined tickedLedgerState
txs <- lift $ genTxs currentSlot tickedLedgerState

-- Actually produce the block
newBlock <- lift $
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import Ouroboros.Consensus.Cardano.Block
import Ouroboros.Consensus.Cardano.Node
import Ouroboros.Consensus.Config (TopLevelConfig, configStorage)
import qualified Ouroboros.Consensus.Fragment.InFuture as InFuture (dontCheck)
import Ouroboros.Consensus.Ledger.Abstract (DiffMK)
import qualified Ouroboros.Consensus.Node as Node (stdMkChainDbHasFS)
import qualified Ouroboros.Consensus.Node.InitStorage as Node
(nodeImmutableDbChunkInfo)
Expand Down Expand Up @@ -114,7 +115,7 @@ eitherParseJson v = case fromJSON v of

synthesize ::
( TopLevelConfig (CardanoBlock StandardCrypto)
-> GenTxs (CardanoBlock StandardCrypto) mk
-> GenTxs (CardanoBlock StandardCrypto) DiffMK
)
-> DBSynthesizerConfig
-> (CardanoProtocolParams StandardCrypto)
Expand Down
Loading