Add commented webhook config (#2849)

* Add commented webhook config

* Remove redundant config
This commit is contained in:
Michalis Kargakis 2019-05-28 05:47:10 +01:00 committed by hashmap
parent 7e57c10ec7
commit a745df3e40

View file

@ -130,6 +130,44 @@ fn comments() -> HashMap<String, String> {
.to_string(), .to_string(),
); );
retval.insert(
"[server.webhook_config]".to_string(),
"
#########################################
### WEBHOOK CONFIGURATION ###
#########################################
"
.to_string(),
);
retval.insert(
"nthreads".to_string(),
"
#The url where a POST request will be sent when a new block is accepted by our node.
#block_accepted_url = \"http://127.0.0.1:8080/acceptedblock\"
#The url where a POST request will be sent when a new transaction is received by a peer.
#tx_received_url = \"http://127.0.0.1:8080/tx\"
#The url where a POST request will be sent when a new header is received by a peer.
#header_received_url = \"http://127.0.0.1:8080/header\"
#The url where a POST request will be sent when a new block is received by a peer.
#block_received_url = \"http://127.0.0.1:8080/block\"
#The number of worker threads that will be assigned to making the http requests.
"
.to_string(),
);
retval.insert(
"timeout".to_string(),
"
#The timeout of the http request in seconds.
"
.to_string(),
);
retval.insert( retval.insert(
"[server.dandelion_config]".to_string(), "[server.dandelion_config]".to_string(),
" "