peer.index is not part of the JSON anymore (#809)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user