Skip to content

Commit

Permalink
feat: add get_consensus RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Jan 11, 2021
1 parent 4c5b90b commit 88de068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ckb/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ def get_raw_tx_pool(verbose = false)
end
end

def get_consensus
Types::Consensus.from_h(rpc.get_consensus)
end

# @return sync_state [SyncState]
def sync_state
Types::SyncState.from_h(rpc.sync_state)
Expand Down

0 comments on commit 88de068

Please sign in to comment.