imOnline Heartbeat struct (#1721)
This commit is contained in:
@@ -10,14 +10,12 @@ export default {
|
||||
blockNumber: 'BlockNumber',
|
||||
networkState: 'OpaqueNetworkState',
|
||||
sessionIndex: 'SessionIndex',
|
||||
authorityId: 'AuthorityId'
|
||||
authorityIndex: 'AuthIndex'
|
||||
},
|
||||
OpaqueMultiaddr: 'Bytes',
|
||||
OpaquePeerId: 'Bytes',
|
||||
OpaqueNetworkState: {
|
||||
/// PeerId of the local node.
|
||||
peerId: 'OpaquePeerId',
|
||||
/// List of addresses the node knows it can be reached as.
|
||||
externalAddresses: 'Vec<OpaqueMultiaddr>'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
import { Struct, Vec } from '@polkadot/types/codec';
|
||||
import { Bytes, u32 } from '@polkadot/types/primitive';
|
||||
import { BlockNumber, Signature } from '@polkadot/types/interfaces/runtime';
|
||||
import { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
|
||||
/** u32 */
|
||||
@@ -21,8 +20,8 @@ export interface Heartbeat extends Struct {
|
||||
readonly networkState: OpaqueNetworkState;
|
||||
/** SessionIndex */
|
||||
readonly sessionIndex: SessionIndex;
|
||||
/** AuthorityId */
|
||||
readonly authorityId: AuthorityId;
|
||||
/** AuthIndex */
|
||||
readonly authorityIndex: AuthIndex;
|
||||
}
|
||||
|
||||
/** Bytes */
|
||||
|
||||
Reference in New Issue
Block a user