Skip to content

Commit

Permalink
Add commented webhook config (#2849)
Browse files Browse the repository at this point in the history
* Add commented webhook config

* Remove redundant config
  • Loading branch information
0xmichalis authored and hashmap committed May 28, 2019
1 parent 7e57c10 commit a745df3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions config/src/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,44 @@ fn comments() -> HashMap<String, 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(
"[server.dandelion_config]".to_string(),
"
Expand Down

0 comments on commit a745df3

Please sign in to comment.