1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 18:10:51 +01:00

Support 'server.ping' Electrum RPC

This commit is contained in:
Roman Zeyde 2018-11-16 20:14:08 +02:00
parent afcc93bc57
commit 3982c9fd78
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -311,6 +311,7 @@ impl Connection {
"server.banner" => self.server_banner(), "server.banner" => self.server_banner(),
"server.donation_address" => self.server_donation_address(), "server.donation_address" => self.server_donation_address(),
"server.peers.subscribe" => self.server_peers_subscribe(), "server.peers.subscribe" => self.server_peers_subscribe(),
"server.ping" => Ok(Value::Null),
"server.version" => self.server_version(), "server.version" => self.server_version(),
&_ => bail!("unknown method {} {:?}", method, params), &_ => bail!("unknown method {} {:?}", method, params),
}; };