|
69 | 69 | "const char P2P_STAT_TRUSTED_PUB_KEY[] = \"%s\";"
|
70 | 70 | ],
|
71 | 71 | "replace_text_alt": [
|
72 |
| - "const char P2P_STAT_TRUSTED_PUB_KEY[] = \"\";" |
| 72 | + "const char P2P_STAT_TRUSTED_PUB_KEY[] = \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0\";" |
73 | 73 | ],
|
74 | 74 | "var": "P2P_STAT_TRUSTED_PUB_KEY"
|
75 | 75 | }
|
|
197 | 197 | },
|
198 | 198 | {
|
199 | 199 | "action": "replace",
|
200 |
| - "marker": "const uint64_t EXPECTED_NUMBER_OF_BLOCKS_PER_DAY", |
| 200 | + "marker": "return 24 * 60 * 60 / difficulty_target;", |
201 | 201 | "parameters": {
|
202 | 202 | "mandatory": false,
|
203 | 203 | "text": [
|
204 |
| - "const uint64_t EXPECTED_NUMBER_OF_BLOCKS_PER_DAY = %s;" |
| 204 | + "return %s;" |
205 | 205 | ],
|
206 | 206 | "var": "EXPECTED_NUMBER_OF_BLOCKS_PER_DAY"
|
207 | 207 | }
|
208 | 208 | },
|
209 | 209 | {
|
210 | 210 | "action": "replace",
|
211 |
| - "marker": "const size_t DIFFICULTY_WINDOW", |
| 211 | + "marker": "return EXPECTED_NUMBER_OF_BLOCKS_PER_DAY(difficulty_target);", |
212 | 212 | "parameters": {
|
213 | 213 | "mandatory": false,
|
214 | 214 | "text": [
|
215 |
| - "const size_t DIFFICULTY_WINDOW = %s;" |
| 215 | + "return %s;" |
216 | 216 | ],
|
217 | 217 | "var": "DIFFICULTY_WINDOW"
|
218 | 218 | }
|
|
264 | 264 | ],
|
265 | 265 | "var": "UPGRADE_HEIGHT_V3"
|
266 | 266 | }
|
267 |
| - }, |
268 |
| - { |
269 |
| - "action": "replace", |
270 |
| - "marker": "const uint32_t KEY_IMAGE_CHECKING_BLOCK_INDEX", |
271 |
| - "parameters": { |
272 |
| - "text": [ |
273 |
| - "const uint32_t KEY_IMAGE_CHECKING_BLOCK_INDEX = %s;" |
274 |
| - ], |
275 |
| - "replace_text_alt": [ |
276 |
| - "const uint32_t KEY_IMAGE_CHECKING_BLOCK_INDEX = 0;" |
277 |
| - ], |
278 |
| - "var": "KEY_IMAGE_CHECKING_BLOCK_INDEX" |
279 |
| - } |
280 |
| - }, |
281 |
| - { |
282 |
| - "action": "replace", |
283 |
| - "marker": "const CheckpointData CHECKPOINTS[] = {", |
284 |
| - "parameters": { |
285 |
| - "text": [ |
286 |
| - "const std::initializer_list<CheckpointData> CHECKPOINTS = {" |
287 |
| - ] |
288 |
| - } |
289 | 267 | }
|
290 | 268 | ]
|
291 | 269 | },
|
292 | 270 | {
|
293 |
| - "path": "/src/CryptoNoteConfig.h", |
| 271 | + "path": "/src/CryptoNoteConfig.hpp", |
294 | 272 | "multiline": true,
|
295 | 273 | "changes": [
|
296 | 274 | {
|
297 | 275 | "action": "replace",
|
298 |
| - "marker": "(const std::initializer_list<CheckpointData> CHECKPOINTS = {)([^;]+)(};)", |
| 276 | + "marker": "(constexpr const CheckpointData CHECKPOINTS\\[\\] = {)([^;]+)(};)", |
299 | 277 | "parameters": {
|
300 | 278 | "mandatory": false,
|
301 | 279 | "text": [
|
|
307 | 285 | },
|
308 | 286 | {
|
309 | 287 | "action": "replace",
|
310 |
| - "marker": "(const char\\* const\\s+SEED_NODES\\[\\] = {)[^;]+(};)", |
| 288 | + "marker": "\"207.246.127.160:8080\", \"108.61.174.232:8080\", \"45.32.156.183:8080\", \"45.76.29.96:8080\"};", |
311 | 289 | "parameters": {
|
312 | 290 | "text": [
|
313 |
| - "\\1 %s \\2" |
| 291 | + "%s };" |
314 | 292 | ],
|
315 | 293 | "var": "SEED_NODES",
|
316 | 294 | "separator": ", ",
|
|
321 | 299 | },
|
322 | 300 | {
|
323 | 301 | "description": "Normalize checkpoints if added",
|
324 |
| - "path": "/src/CryptoNoteConfig.h", |
| 302 | + "path": "/src/CryptoNoteConfig.hpp", |
325 | 303 | "multiline": true,
|
326 | 304 | "changes": [
|
327 | 305 | {
|
|
338 | 316 | ]
|
339 | 317 | },
|
340 | 318 | {
|
341 |
| - "path": "/src/CryptoNoteCore/Currency.cpp", |
| 319 | + "path": "/src/Core/Currency.cpp", |
342 | 320 | "changes": [
|
343 | 321 | {
|
| 322 | + "description": "GENESIS_COINBASE_TX_HEX", |
344 | 323 | "action": "replace",
|
345 |
| - "marker": "std::string genesisCoinbaseTxHex", |
| 324 | + "marker": "\"010a01ff0001ffffffffffff0f029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f\"", |
346 | 325 | "parameters": {
|
347 | 326 | "text": [
|
348 |
| - " std::string genesisCoinbaseTxHex = \"%s\";" |
| 327 | + "" |
| 328 | + ] |
| 329 | + } |
| 330 | + }, |
| 331 | + { |
| 332 | + "action": "replace", |
| 333 | + "marker": "\"5142ee494ffbbd08807121013c086a48c15fb637a96991bc6d53caf77068b5ba6eeb3c82357228c49790584a\";", |
| 334 | + "parameters": { |
| 335 | + "text": [ |
| 336 | + "%s ;" |
349 | 337 | ],
|
350 |
| - "var": "GENESIS_COINBASE_TX_HEX" |
| 338 | + "var": "GENESIS_COINBASE_TX_HEX", |
| 339 | + "separator": ", ", |
| 340 | + "quote_it": true |
351 | 341 | }
|
352 | 342 | }
|
353 | 343 | ]
|
354 | 344 | },
|
355 | 345 | {
|
356 |
| - "path": "/src/P2p/P2pNetworks.h", |
| 346 | + "path": "/src/Core/Config.cpp", |
357 | 347 | "changes": [
|
358 | 348 | {
|
359 | 349 | "action": "replace",
|
360 |
| - "marker": "const static boost::uuids::uuid BYTECOIN_NETWORK", |
| 350 | + "marker": "const static UUID BYTECOIN_NETWORK{{", |
361 | 351 | "parameters": {
|
362 | 352 | "text": [
|
363 |
| - " const static boost::uuids::uuid BYTECOIN_NETWORK = { { %s } };" |
| 353 | + " const static UUID BYTECOIN_NETWORK{{ %s }};" |
364 | 354 | ],
|
365 | 355 | "var": "BYTECOIN_NETWORK"
|
366 | 356 | }
|
| 357 | + }, |
| 358 | + { |
| 359 | + "action": "replace", |
| 360 | + "marker": "0x01, 0x10}};", |
| 361 | + "parameters": { |
| 362 | + "text": [ |
| 363 | + "" |
| 364 | + ] |
| 365 | + } |
367 | 366 | }
|
368 | 367 | ]
|
369 | 368 | },
|
370 | 369 | {
|
371 |
| - "path": "/src/P2p/P2pNetworks.h", |
| 370 | + "path": "/src/Core/Config.cpp", |
372 | 371 | "multiline": true,
|
373 | 372 | "changes": [
|
374 | 373 | {
|
375 | 374 | "action": "replace",
|
376 |
| - "marker": "(const static boost::uuids::uuid BYTECOIN_NETWORK = { { )([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})( } };)", |
| 375 | + "marker": "(const static UUID BYTECOIN_NETWORK{{ )([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})-([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})( }};)", |
377 | 376 | "parameters": {
|
378 | 377 | "text": [
|
379 | 378 | "\\1 0x\\2, 0x\\3, 0x\\4, 0x\\5, 0x\\6, 0x\\7, 0x\\8, 0x\\9, 0x\\10, 0x\\11, 0x\\12, 0x\\13, 0x\\14, 0x\\15, 0x\\16, 0x\\17 \\18"
|
|
383 | 382 | ]
|
384 | 383 | },
|
385 | 384 | {
|
386 |
| - "path": "/src/PaymentGateService/RpcNodeConfiguration.cpp", |
| 385 | + "file_pattern": "src/main_bytecoind.cpp", |
| 386 | + "action": "bulk_replace", |
| 387 | + "find": "8080", |
387 | 388 | "changes": [
|
388 | 389 | {
|
389 |
| - "action": "replace", |
390 |
| - "marker": "(\"daemon-port\", po::value<uint16_t>()->default_value(8081), \"bytecoind port\");", |
391 | 390 | "parameters": {
|
392 | 391 | "text": [
|
393 |
| - " (\"daemon-port\", po::value<uint16_t>()->default_value(%s), \"daemon port\");" |
| 392 | + "%s" |
| 393 | + ], |
| 394 | + "var": "P2P_DEFAULT_PORT" |
| 395 | + } |
| 396 | + } |
| 397 | + ] |
| 398 | + }, |
| 399 | + { |
| 400 | + "file_pattern": "src/main_bytecoind.cpp", |
| 401 | + "action": "bulk_replace", |
| 402 | + "find": "8081", |
| 403 | + "changes": [ |
| 404 | + { |
| 405 | + "parameters": { |
| 406 | + "text": [ |
| 407 | + "%s" |
394 | 408 | ],
|
395 | 409 | "var": "RPC_DEFAULT_PORT"
|
396 | 410 | }
|
397 | 411 | }
|
398 | 412 | ]
|
399 | 413 | },
|
400 | 414 | {
|
401 |
| - "path": "/src/SimpleWallet/SimpleWallet.cpp", |
| 415 | + "file_pattern": "src/main_walletd.cpp", |
| 416 | + "action": "bulk_replace", |
| 417 | + "find": "8080", |
402 | 418 | "changes": [
|
403 | 419 | {
|
404 |
| - "action": "replace", |
405 |
| - "marker": "const command_line::arg_descriptor<uint16_t> arg_daemon_port = { \"daemon-port\", \"Use daemon instance at port <arg> instead of 8081\", 0 };", |
406 | 420 | "parameters": {
|
407 | 421 | "text": [
|
408 |
| - "const command_line::arg_descriptor<uint16_t> arg_daemon_port = { \"daemon-port\", \"Use daemon instance at port <arg> instead of %s\", 0 };" |
| 422 | + "%s" |
| 423 | + ], |
| 424 | + "var": "P2P_DEFAULT_PORT" |
| 425 | + } |
| 426 | + } |
| 427 | + ] |
| 428 | + }, |
| 429 | + { |
| 430 | + "file_pattern": "src/main_walletd.cpp", |
| 431 | + "action": "bulk_replace", |
| 432 | + "find": "8081", |
| 433 | + "changes": [ |
| 434 | + { |
| 435 | + "parameters": { |
| 436 | + "text": [ |
| 437 | + "%s" |
409 | 438 | ],
|
410 | 439 | "var": "RPC_DEFAULT_PORT"
|
411 | 440 | }
|
412 | 441 | }
|
413 | 442 | ]
|
| 443 | + }, |
| 444 | + { |
| 445 | + "file_pattern": "CMakeLists.txt", |
| 446 | + "action": "bulk_replace", |
| 447 | + "find": "bytecoind ", |
| 448 | + "changes": [ |
| 449 | + { |
| 450 | + "parameters": { |
| 451 | + "text": [ |
| 452 | + "%sd " |
| 453 | + ], |
| 454 | + "var": "CRYPTONOTE_NAME" |
| 455 | + } |
| 456 | + } |
| 457 | + ] |
| 458 | + }, |
| 459 | + { |
| 460 | + "path": "/Makefile", |
| 461 | + "action": "add", |
| 462 | + "source": "/files/Makefile" |
414 | 463 | }
|
415 | 464 | ]
|
416 | 465 | }
|
0 commit comments