mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
commit
93365973a7
3 changed files with 13 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
--no-upnp Disable UPnP port forwarding
|
||||
--no-igd An alias for --no-upnp
|
||||
--upnp-stratum Port forward Stratum port (it's not forwarded by default)
|
||||
--version Print p2pool's version and build details
|
||||
```
|
||||
|
||||
### Example command line
|
||||
|
|
11
src/main.cpp
11
src/main.cpp
|
@ -58,6 +58,7 @@ void p2pool_usage()
|
|||
"--no-igd An alias for --no-upnp\n"
|
||||
"--upnp-stratum Port forward Stratum port (it's not forwarded by default)\n"
|
||||
#endif
|
||||
"--version Print p2pool's version and build details\n"
|
||||
"--help Show this help message\n\n"
|
||||
"Example command line:\n\n"
|
||||
"%s --host 127.0.0.1 --rpc-port 18081 --zmq-port 18083 --wallet YOUR_WALLET_ADDRESS --stratum 0.0.0.0:%d --p2p 0.0.0.0:%d\n\n",
|
||||
|
@ -75,6 +76,11 @@ void p2pool_usage()
|
|||
);
|
||||
}
|
||||
|
||||
void p2pool_version()
|
||||
{
|
||||
printf("P2Pool %s\n", p2pool::VERSION);
|
||||
}
|
||||
|
||||
void memory_tracking_start();
|
||||
void memory_tracking_stop();
|
||||
|
||||
|
@ -90,6 +96,11 @@ int main(int argc, char* argv[])
|
|||
p2pool_usage();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[i], "--version") || strcmp(argv[i], "/version") || strcmp(argv[i], "-v") || strcmp(argv[i], "/v")) {
|
||||
p2pool_version();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
memory_tracking_start();
|
||||
|
|
|
@ -280,6 +280,7 @@ struct PerfTimer
|
|||
void memory_tracking_start();
|
||||
void memory_tracking_stop();
|
||||
void p2pool_usage();
|
||||
void p2pool_version();
|
||||
|
||||
namespace robin_hood {
|
||||
|
||||
|
|
Loading…
Reference in a new issue