We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e819516 commit b6d1d86Copy full SHA for b6d1d86
src/electrumx/server/session.py
@@ -1528,11 +1528,20 @@ async def ping(self):
1528
self.bump_cost(0.1)
1529
return None
1530
1531
- async def server_version(self, client_name='', protocol_version=None):
+ async def server_version(
1532
+ self,
1533
+ client_name='',
1534
+ protocol_version=None,
1535
+ *extra_args,
1536
+ **extra_kwargs,
1537
+ ):
1538
'''Returns the server version as a string.
1539
1540
client_name: a string identifying the client
1541
protocol_version: the protocol version spoken by the client
1542
+
1543
+ note: extraneous unknown args for 'server.version' MUST be tolerated
1544
+ and ignored by the server, to allow for future extensions.
1545
'''
1546
self.bump_cost(0.5)
1547
if self.sv_seen:
0 commit comments