Skip to content

Commit

Permalink
Merge pull request #565 from Concordium/consensus-detailed-status
Browse files Browse the repository at this point in the history
Support for consensus detailed status GRPC query.
  • Loading branch information
td202 authored Oct 31, 2024
2 parents d7eb356 + 7b4cc5a commit 81c5f9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion concordium-grpc-api
12 changes: 12 additions & 0 deletions haskell-src/Concordium/GRPC2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ module Concordium.GRPC2 (
BakerKeysEvent,
BlockHashInput (..),
BlockHeightInput (..),

-- * Helpers
mkSerialize,
mkWord64,
mkWord32,
mkWord16,
mkWord8,
)
where

Expand Down Expand Up @@ -47,6 +54,7 @@ import qualified Concordium.Types.Transactions as TxTypes

import Concordium.Common.Time
import Concordium.Common.Version
import qualified Concordium.Crypto.BlockSignature as BlockSignature
import Concordium.Crypto.SHA256 (Hash)
import Concordium.Crypto.SignatureScheme (Signature (..), VerifyKey (..))
import qualified Concordium.ID.AnonymityRevoker as ArInfo
Expand Down Expand Up @@ -2425,3 +2433,7 @@ instance ToProto (DryRunResponse (TransactionSummary' ValidResultWithReturn)) wh
-- Since only account transactions can be executed in a dry run, we should not have
-- other transaction summary types.
Left CEInvalidTransactionResult

instance ToProto BlockSignature.Signature where
type Output BlockSignature.Signature = Proto.BlockSignature
toProto = mkSerialize

0 comments on commit 81c5f9d

Please sign in to comment.