-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rpc endpoints #224
Rpc endpoints #224
Conversation
vldm
commented
Jul 10, 2017
•
edited
edited
- Add possibility to control pool.
- Add possibility to control network.
exonum/src/blockchain/service.rs
Outdated
} | ||
} | ||
|
||
/// Shared part of context, used to take some values from the `Node` `State` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...of the context, ... from the Nodes
's State
'...
exonum/src/blockchain/service.rs
Outdated
} | ||
|
||
impl SharedNodeState { | ||
/// create new `SharedNodeState` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a new SharedNodeState
.
exonum/src/blockchain/service.rs
Outdated
.reconnects_timeout.insert(addr, timeout) | ||
} | ||
|
||
/// Remove reconect timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes reconnect timeout and returns the previous value.
} | ||
} | ||
|
||
/// Return internal `SharedNodeState` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns internal SharedNodeState
.
ApiSender { inner: inner } | ||
} | ||
|
||
/// Addr peer to peer list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds a peer to the peers list.
sandbox/src/sandbox.rs
Outdated
.handler | ||
let b = self.reactor | ||
.borrow(); | ||
let rlock = b.handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be written without additional b
variable?
exonum/src/blockchain/service.rs
Outdated
} | ||
} | ||
/// Return list of connected sockets | ||
pub fn in_connections(&self) -> Vec<SocketAddr> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion incoming_connections
is more clear name
exonum/src/api/private/system.rs
Outdated
} | ||
|
||
impl SystemApi { | ||
/// Create new `SystemApi`, from `ApiContext` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a new SystemApi
, from ApiContext
.
exonum/src/api/private/system.rs
Outdated
id: u16, | ||
} | ||
|
||
/// `DTO` used to transfer information about node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DTO
is used transfer information about node.
exonum/src/api/private/system.rs
Outdated
} | ||
|
||
impl NodeInfo { | ||
/// Create new `NodeInfo`, from services list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a new NodeInfo
from the services list.
Rpc endpoints Former-commit-id: 85d8d41ada4987c2384a99a1f3db854a138ed07c