Add ethcore_[dapps|signer]Port APIs (#2821)
* Add ethcore_[dapps|signer]Port APIs * typo
This commit is contained in:
parent
44a560e964
commit
e0207b594b
@ -32,6 +32,12 @@ export default class Ethcore {
|
||||
.execute('ethcore_addReservedPeer', encode);
|
||||
}
|
||||
|
||||
dappsPort () {
|
||||
return this._transport
|
||||
.execute('ethcore_dappsPort')
|
||||
.then(outNumber);
|
||||
}
|
||||
|
||||
defaultExtraData () {
|
||||
return this._transport
|
||||
.execute('ethcore_defaultExtraData');
|
||||
@ -154,6 +160,12 @@ export default class Ethcore {
|
||||
.execute('ethcore_setTransactionsLimit', inNumber16(quantity));
|
||||
}
|
||||
|
||||
signerPort () {
|
||||
return this._transport
|
||||
.execute('ethcore_signerPort')
|
||||
.then(outNumber);
|
||||
}
|
||||
|
||||
transactionsLimit () {
|
||||
return this._transport
|
||||
.execute('ethcore_transactionsLimit')
|
||||
|
@ -40,6 +40,15 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
dappsPort: {
|
||||
desc: 'Returns the port the dapps are running on, error if not enabled',
|
||||
params: [],
|
||||
returns: {
|
||||
type: Quantity,
|
||||
desc: 'The port number'
|
||||
}
|
||||
},
|
||||
|
||||
defaultExtraData: {
|
||||
desc: 'Returns the default extra data',
|
||||
params: [],
|
||||
@ -294,6 +303,15 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
signerPort: {
|
||||
desc: 'Returns the port the signer is running on, error if not enabled',
|
||||
params: [],
|
||||
returns: {
|
||||
type: Quantity,
|
||||
desc: 'The port number'
|
||||
}
|
||||
},
|
||||
|
||||
transactionsLimit: {
|
||||
desc: 'Changes limit for transactions in queue.',
|
||||
params: [],
|
||||
|
Loading…
Reference in New Issue
Block a user