Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
20
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
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
06c179a6
Commit
06c179a6
authored
4 years ago
by
Aleksei Voronin
Browse files
Options
Downloads
Patches
Plain Diff
[*] fixed naming for default_chain
parent
e767c73b
No related branches found
No related tags found
3 merge requests
!82
Bugs 3815
,
!80
Bugs 3815
,
!79
Bugs 3815
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/mempool/dap_chain_mempool.c
+2
-2
2 additions, 2 deletions
modules/mempool/dap_chain_mempool.c
modules/net/dap_chain_net.c
+4
-4
4 additions, 4 deletions
modules/net/dap_chain_net.c
modules/net/include/dap_chain_net.h
+1
-1
1 addition, 1 deletion
modules/net/include/dap_chain_net.h
with
7 additions
and
7 deletions
modules/mempool/dap_chain_mempool.c
+
2
−
2
View file @
06c179a6
...
...
@@ -658,8 +658,8 @@ dap_chain_hash_fast_t* dap_chain_proc_tx_create_cond(dap_chain_net_t * a_net,
{
dap_chain_t
*
l_chain
=
NULL
;
if
(
a_net
->
pub
.
default_
tx_
chain
)
l_chain
=
a_net
->
pub
.
default_
tx_
chain
;
if
(
a_net
->
pub
.
default_chain
)
l_chain
=
a_net
->
pub
.
default_chain
;
else
dap_chain_net_get_chain_by_chain_type
(
a_net
,
CHAIN_TYPE_TX
);
...
...
This diff is collapsed.
Click to expand it.
modules/net/dap_chain_net.c
+
4
−
4
View file @
06c179a6
...
...
@@ -1661,11 +1661,11 @@ int s_net_load(const char * a_net_name)
}
dap_list_free
(
l_prior_list
);
const
char
*
l_default_
tx_
chain_name
=
dap_config_get_item_str
(
l_cfg
,
"general"
,
"default_
tx_
chain"
);
if
(
l_default_
tx_
chain_name
)
l_net
->
pub
.
default_
tx_
chain
=
dap_chain_net_get_chain_by_name
(
l_net
,
l_default_
tx_
chain_name
);
const
char
*
l_default_chain_name
=
dap_config_get_item_str
(
l_cfg
,
"general"
,
"default_chain"
);
if
(
l_default_chain_name
)
l_net
->
pub
.
default_chain
=
dap_chain_net_get_chain_by_name
(
l_net
,
l_default_chain_name
);
else
l_net
->
pub
.
default_
tx_
chain
=
NULL
;
l_net
->
pub
.
default_chain
=
NULL
;
}
else
{
log_it
(
L_ERROR
,
"Can't any chains for network %s"
,
l_net
->
pub
.
name
);
...
...
This diff is collapsed.
Click to expand it.
modules/net/include/dap_chain_net.h
+
1
−
1
View file @
06c179a6
...
...
@@ -75,7 +75,7 @@ typedef struct dap_chain_net{
char
*
gdb_nodes
;
dap_chain_t
*
chains
;
// double-linked list of chains
dap_chain_t
*
default_
tx_
chain
;
dap_chain_t
*
default_chain
;
dap_ledger_t
*
ledger
;
}
pub
;
uint8_t
pvt
[];
...
...
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