Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net
Commits
e3b3bc97
Commit
e3b3bc97
authored
4 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] auto_proc config value
parent
70d4055f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_node.c
+15
-5
15 additions, 5 deletions
dap_chain_node.c
with
15 additions
and
5 deletions
dap_chain_node.c
+
15
−
5
View file @
e3b3bc97
...
...
@@ -291,16 +291,26 @@ void dap_chain_node_mempool_periodic()
static
void
*
s_mempool_timer
=
NULL
;
/**
* @brief dap_chain_node_mempool_init
* @return
*/
int
dap_chain_node_mempool_init
()
{
s_mempool_timer
=
dap_interval_timer_create
(
DAP_CHAIN_NODE_MEMPOOL_INTERVAL
,
dap_chain_node_mempool_periodic
);
if
(
s_mempool_timer
)
{
if
(
dap_config_get_item_bool_default
(
g_config
,
"mempool"
,
"auto_proc"
,
true
)
){
s_mempool_timer
=
dap_interval_timer_create
(
DAP_CHAIN_NODE_MEMPOOL_INTERVAL
,
dap_chain_node_mempool_periodic
);
if
(
s_mempool_timer
)
{
return
0
;
}
else
{
return
-
1
;
}
}
else
return
0
;
}
else
{
return
-
1
;
}
}
/**
* @brief dap_chain_node_mempool_deinit
*/
void
dap_chain_node_mempool_deinit
()
{
if
(
s_mempool_timer
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment