-
Notifications
You must be signed in to change notification settings - Fork 32
Use the new queryPoolState from ledger #1657
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Patch | ||
|
||
- Use the new `queryPoolState` ledger state query from ledger instead of extracting it from `NewEpochState`. | ||
|
||
### Breaking | ||
|
||
- `Tx Size` is now a `Word32` instead of an `Integer`, therefore `maxTxSizeUTxO` changed to expect `Word32`s. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -33,7 +33,7 @@ import Data.Maybe (catMaybes, maybeToList) | |||||
import Data.Maybe.Strict | ||||||
import Data.Monoid (Sum (..)) | ||||||
import Data.Sequence.Strict (StrictSeq) | ||||||
import Data.Word (Word64) | ||||||
import Data.Word (Word32, Word64) | ||||||
import Lens.Micro ((^.)) | ||||||
import Lens.Micro.Extras (view) | ||||||
import Ouroboros.Consensus.Node.ProtocolInfo | ||||||
|
@@ -70,7 +70,7 @@ instance | |||||
blockTxSizes blk = case Shelley.shelleyBlockRaw blk of | ||||||
SL.Block _ body -> | ||||||
toList $ | ||||||
fmap (fromIntegral @Integer @SizeInBytes . view Core.sizeTxF) (body ^. Core.txSeqBlockBodyL) | ||||||
fmap (fromIntegral @Word32 @SizeInBytes . view Core.sizeTxF) (body ^. Core.txSeqBlockBodyL) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to go through
Suggested change
|
||||||
|
||||||
knownEBBs = const Map.empty | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect:
Please, switch from using PoolParams to using StakePoolState in this module