mirror of
https://github.com/clitor-is-protocol/kevacoin-cli.git
synced 2025-01-31 00:44:18 +00:00
resolve too-long-mempool-chain rejects
This commit is contained in:
parent
8b545b65e3
commit
fe928f8f87
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user