Skip to content

Commit be644ae

Browse files
committed
fixing enable_blockchain typo
1 parent 033a54b commit be644ae

File tree

3 files changed

+3
-96
lines changed

3 files changed

+3
-96
lines changed

extensions/blockchain-explorer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"marker": "arg_testnet_on = {\"testnet\"",
1515
"parameters": {
1616
"text": [
17-
" const command_line::arg_descriptor<bool> arg_blockexplorer_on = {\"enable_blockexplorer\", \"Enable blockchain explorer RPC\", false};"
17+
" const command_line::arg_descriptor<bool> arg_blockexplorer_on = {\"enable-blockexplorer\", \"Enable blockchain explorer RPC\", false};"
1818
]
1919
}
2020
},

extensions/bug-fixes.json

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -63,67 +63,6 @@
6363
}
6464
]
6565
},
66-
{
67-
"path": "/src/Transfers/SynchronizationState.cpp",
68-
"changes": [
69-
{
70-
"action": "add_above",
71-
"marker": "assert( size == height);",
72-
"parameters": {
73-
"text": [
74-
" // Dummy fix for simplewallet or walletd when sync",
75-
" if (height == 0)",
76-
" height = 1;"
77-
]
78-
}
79-
}
80-
]
81-
},
82-
{
83-
"path": "/src/Rpc/RpcServer.cpp",
84-
"changes": [
85-
{
86-
"descroption":"Fixing on_get_block_header_by_height incorrect height output",
87-
"action": "replace",
88-
"marker": "if (m_core.getTopBlockIndex() + 1 < req.height) {",
89-
"parameters": {
90-
"text": [
91-
" if (m_core.getTopBlockIndex() < req.height) {"
92-
]
93-
}
94-
},
95-
{
96-
"descroption":"Fixing on_get_block_header_by_height incorrect height output",
97-
"action": "replace",
98-
"marker": "std::string(\"To big height: \") + std::to_string(req.height) + \", current blockchain height = \" + std::to_string(m_core.getTopBlockIndex() + 1) };",
99-
"parameters": {
100-
"text": [
101-
" std::string(\"To big height: \") + std::to_string(req.height) + \", current blockchain height = \" + std::to_string(m_core.getTopBlockIndex()) };"
102-
]
103-
}
104-
},
105-
{
106-
"descroption":"Fixing on_get_block_header_by_height incorrect height output",
107-
"action": "replace",
108-
"marker": "uint32_t index = static_cast<uint32_t>(req.height) - 1;",
109-
"parameters": {
110-
"text": [
111-
"uint32_t index = static_cast<uint32_t>(req.height);"
112-
]
113-
}
114-
},
115-
{
116-
"descroption":"Fixing on_get_block_header_by_height incorrect height output",
117-
"action": "replace",
118-
"marker": "assert(cachedBlock.getBlockIndex() == req.height - 1);",
119-
"parameters": {
120-
"text": [
121-
"assert(cachedBlock.getBlockIndex() == req.height);"
122-
]
123-
}
124-
}
125-
]
126-
},
12766
{
12867
"path": "/src/SimpleWallet/SimpleWallet.cpp",
12968
"changes": [
@@ -147,38 +86,6 @@
14786
}
14887
]
14988
},
150-
{
151-
"path": "/src/CryptoNoteProtocol/CryptoNoteProtocolHandler.cpp",
152-
"changes": [
153-
{
154-
"description": "Fix getinfo incorrect last_known_block_index when malicious is in place",
155-
"action": "add_below",
156-
"marker": "m_observedHeight = std::max(peerHeight, m_core.getTopBlockIndex() + 1);",
157-
"parameters": {
158-
"text": [
159-
" if (context.m_state == CryptoNoteConnectionContext::state_normal) {",
160-
" m_observedHeight = m_core.getTopBlockIndex();",
161-
" }"
162-
]
163-
}
164-
},
165-
{
166-
"description": "Fix getinfo incorrect last_known_block_index when malicious is in place",
167-
"action": "replace",
168-
"marker": "if (peerHeight > context.m_remote_blockchain_height) {",
169-
"parameters": {
170-
"text": [
171-
" if (context.m_remote_blockchain_height != 0 && context.m_last_response_height <= context.m_remote_blockchain_height - 1) {",
172-
" m_observedHeight = context.m_remote_blockchain_height - 1;",
173-
" if (m_observedHeight != height) {",
174-
" updated = true;",
175-
" }",
176-
" } else if (peerHeight > context.m_remote_blockchain_height) {"
177-
]
178-
}
179-
}
180-
]
181-
},
18289
{
18390
"path": "/src/crypto/crypto.h",
18491
"changes": [

extensions/zawy-difficulty-algorithm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@
211211
" }",
212212

213213
" uint64_t nextDiffZ = low / timeSpan;",
214-
" if (nextDiffZ <= 100) {",
215-
" nextDiffZ = 100;",
214+
" if (nextDiffZ <= 1) {",
215+
" nextDiffZ = 1;",
216216
" }",
217217
" return nextDiffZ;",
218218
" }",

0 commit comments

Comments
 (0)