resolve too-long-mempool-chain rejects

This commit is contained in:
ghost 2023-11-16 14:17:19 +02:00
parent 8b545b65e3
commit fe928f8f87
2 changed files with 13 additions and 1 deletions

View File

@ -11,12 +11,13 @@ CLI util to operate with large objects in small blocks size
export FS object to blockchain namespace export FS object to blockchain namespace
``` ```
php kevacoin/put.php processor filename [length] php kevacoin/put.php processor filename [length] [delay]
``` ```
* `processor` - path to `kevacoin-cli` * `processor` - path to `kevacoin-cli`
* `filename` - file path to store in blockchain * `filename` - file path to store in blockchain
* `length` - optional split size, 3072 bytes [max](https://kevacoin.org/faq.html) * `length` - optional split size, 3072 bytes [max](https://kevacoin.org/faq.html)
* `delay` - optional seconds of parts sending delay to prevent `too-long-mempool-chain` reject, 60 by default
### get ### get

View File

@ -60,5 +60,16 @@ if (!empty($kevaNamespace->namespaceId))
); );
print_r($kevaPut); print_r($kevaPut);
$delay = isset($argv[4]) ? (int) $argv[4] : 60;
echo sprintf(
'%s/%s sent, waiting %s seconds...' . PHP_EOL,
$key + 1,
count($parts),
$delay
);
sleep($delay);
} }
} }