Commit e5e8401
committed
fix(config): trustNode default empty when not configured
Previously config.hasPath returned false when trustNode was commented
out, resulting in trustNodeAddr=null. Bean binding always provided
a default value '127.0.0.1:50051', changing behavior. Restore null
semantics by defaulting to empty string and converting to null.1 parent 965051d commit e5e8401
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- common/src/main/java/org/tron/core/config/args
- framework/src/main/java/org/tron/core/config/args
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
| 660 | + | |
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
| |||
0 commit comments