imOnline Heartbeat struct (#1721)

This commit is contained in:
Jaco Greeff
2020-01-15 09:56:58 +01:00
committed by GitHub
parent d1f63a7864
commit 72e9474f6f
2 changed files with 3 additions and 6 deletions
@@ -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 */