Skip to content

Commit

Permalink
Update base64-bytestring-kadena and cabal.project.freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Akentev committed May 31, 2024
1 parent c7bd0c7 commit e4beac7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/kadena-io/pact-5.git
tag: 8b1c652aad086d8026a34582f3012964602aead4
--sha256: 1hzpsbfzwm33jd1asws4d84kyqbw5kl98m926mkfkv4n7yadajpp
tag: 3e5454901b4480bdcebe32fdd06e07555bd9a103
--sha256: sha256-/bEUYaQFGlbYWTU+pBuqQd0SDDiD0az7zdq59mZnek0=

source-repository-package
type: git
Expand Down Expand Up @@ -144,9 +144,9 @@ source-repository-package
-- Required for non-canonical decode in base64-bytestring (remove after 2.20 fork)
source-repository-package
type: git
location: https://github.com/emilypi/base64-bytestring-kadena
tag: 174af3523616c8fe01449da5ccbb9f16df097ac3
--sha256: sha256-kVFIy+Aj3TNJpsM1Cs/5uGmzeWwHKYWjjCQ+L1/XOj8=
location: https://github.com/kadena-io/base64-bytestring-kadena
tag: 90247042ab3b8662809210af2a78e6dee0f9b4ac
--sha256: sha256-xqIGml2asB+FxqVpsvVO59fdOGyJVBhZL6MyULvMGjc=

source-repository-package
type: git
Expand Down
2 changes: 1 addition & 1 deletion chainweb.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ custom-setup
-- -------------------------------------------------------------------------- --

library
import: warning-flags, debugging-flags
import: debugging-flags
default-language: Haskell2010
hs-source-dirs: src
other-modules:
Expand Down
10 changes: 5 additions & 5 deletions src/Chainweb/Pact/PactService/ExecBlock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ initModuleCacheForBlock isGenesis = do
mc <- readInitModules
updateInitCacheM mc
return mc
Just (_,(mc, cmc)) ->
if (not $ (PCore.ModuleName "core" Nothing) `Set.member` (M.keysSet $ _getCoreModuleCache cmc)) then do
cmc' <- liftIO (readInitModulesCore l (_cpPactDbEnv dbEnv, _cpPactCoreDbEnv dbEnv) txCtx)
pure (mc, cmc' <> cmc)
else pure (mc, cmc)
Just (_,(mc, cmc)) -> pure (mc, cmc)
-- if (not $ (PCore.ModuleName "core" Nothing) `Set.member` (M.keysSet $ _getCoreModuleCache cmc)) then do
-- cmc' <- liftIO (readInitModulesCore l (_cpPactDbEnv dbEnv, _cpPactCoreDbEnv dbEnv) txCtx)
-- pure (mc, cmc' <> cmc)
-- else pure (mc, cmc)

runCoinbase
:: (Logger logger)
Expand Down
2 changes: 1 addition & 1 deletion src/Chainweb/Pact/TransactionExec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ applyCoinbase v logger (dbEnv, coreDb) (Miner mid mks@(MinerKeys mk)) reward@(Pa
Just coinbaseTerm | usePactTng -> do
coreState <-
if (not $ (PCore.ModuleName "core" Nothing) `S.member` (M.keysSet $ _getCoreModuleCache cmc)) then do
cmc' <- undefined readInitModulesCore
cmc' <- undefined --readInitModulesCore
pure $ setCoreModuleCache cmc' evState
else pure evState

Expand Down

0 comments on commit e4beac7

Please sign in to comment.