You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
573 B
19 lines
573 B
8 years ago
|
#!/bin/bash
|
||
|
|
||
|
clear
|
||
|
echo ""
|
||
|
echo "
|
||
|
The encryptwallet RPC encrypts the wallet with a passphrase.
|
||
|
This is only to enable encryption for the first time. After encryption is enabled,
|
||
|
you will need to enter the passphrase to use private keys"
|
||
|
echo ""
|
||
|
echo ""
|
||
|
|
||
|
echo "Scenario: Test encryptwallet RPC with long passphrase]"
|
||
|
echo "Result: Should Return status:locked"
|
||
|
echo ""
|
||
|
|
||
|
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"encryptwallet\",\"passphrase\":\"This is a very long passphrase i set to test the encryptwallet rpc\"}"
|
||
|
echo ""
|
||
|
echo ""
|