From a745df3e400a9c7ecda1d0816448465a0d5e4cfb Mon Sep 17 00:00:00 2001 From: Michalis Kargakis Date: Tue, 28 May 2019 05:47:10 +0100 Subject: [PATCH] Add commented webhook config (#2849) * Add commented webhook config * Remove redundant config --- config/src/comments.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/config/src/comments.rs b/config/src/comments.rs index 68d5b13166..4ed227896c 100644 --- a/config/src/comments.rs +++ b/config/src/comments.rs @@ -130,6 +130,44 @@ fn comments() -> HashMap { .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( "[server.dandelion_config]".to_string(), "