Commit 30cff2f3 authored by Ubuntu's avatar Ubuntu

query rate limit without param height

parent 7f25f85b
pragma solidity ^ 0.8.13;
interface consensus{
function queryBatchHash(uint64 height) external view returns ( bytes calldata);
function queryRate() external view returns (uint32 rate); // 需要区分追块状态还是 出块状态
function latestHeight() external view returns (uint64);
function batchHash(uint64 height, bytes calldata batchhash)external returns (bool success);
}
\ No newline at end of file
...@@ -8,7 +8,7 @@ import "sentry/v1/resource.proto"; ...@@ -8,7 +8,7 @@ import "sentry/v1/resource.proto";
message LimitInfoRequest { message LimitInfoRequest {
// block height to get limit info from contract. // block height to get limit info from contract.
uint32 height = 1; //uint32 height = 1;
} }
message LimitInfoResponse { message LimitInfoResponse {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment