Skip to content

Commit

Permalink
Merge pull request #70 from CudoVentures/CUDOS-1880-invalid-block-sig…
Browse files Browse the repository at this point in the history
…natures

CUDOS-1880 Fix blockDetails graphql query
  • Loading branch information
tgntr authored Dec 9, 2022
2 parents be7bc61 + 9c71ab1 commit f43447a
Show file tree
Hide file tree
Showing 4 changed files with 3,898 additions and 356 deletions.
22 changes: 11 additions & 11 deletions src/graphql/block_details.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query BlockDetails($height: bigint, $signatureHeight: bigint) {
query BlockDetails($height: bigint) {
transaction(where: {height: {_eq: $height}}) {
height
hash
Expand All @@ -16,19 +16,19 @@ query BlockDetails($height: bigint, $signatureHeight: bigint) {
operatorAddress: operator_address
}
}
}
preCommitsAggregate: pre_commit_aggregate(where: {height: {_eq: $signatureHeight}}) {
aggregate{
sum {
votingPower: voting_power
}
}
}
preCommits: pre_commit(where: {height: {_eq: $signatureHeight}}) {
validator {
preCommits: pre_commits {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
}
}
}
preCommitsAggregate: pre_commits_aggregate {
aggregate {
sum {
votingPower: voting_power
}
}
}
}
}
Loading

0 comments on commit f43447a

Please sign in to comment.