peer.index is not part of the JSON anymore (#809)

This commit is contained in:
Jaco Greeff
2019-03-28 17:28:45 +01:00
committed by GitHub
parent d47a1c04e8
commit 1859143328
-8
View File
@@ -24,7 +24,6 @@ const JSON_MAP = new Map([
export default class PeerInfo extends Struct {
constructor (value?: any) {
super({
index: USize,
peerId: Text,
roles: Text,
protocolVersion: U32,
@@ -47,13 +46,6 @@ export default class PeerInfo extends Struct {
return this.get('bestNumber') as BlockNumber;
}
/**
* @description The index of the peer in our list
*/
get index (): USize {
return this.get('index') as USize;
}
/**
* @description The p2p network id for the peer
*/