|
63 | 63 | }
|
64 | 64 | ]
|
65 | 65 | },
|
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 |
| - }, |
127 | 66 | {
|
128 | 67 | "path": "/src/SimpleWallet/SimpleWallet.cpp",
|
129 | 68 | "changes": [
|
|
147 | 86 | }
|
148 | 87 | ]
|
149 | 88 | },
|
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 |
| - }, |
182 | 89 | {
|
183 | 90 | "path": "/src/crypto/crypto.h",
|
184 | 91 | "changes": [
|
|
0 commit comments