Skip to content

Commit

Permalink
success supernet api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptozoidberg committed Oct 21, 2014
1 parent c941359 commit d188d7a
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/currency_core/blockchain_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ bool blockchain_storage::handle_alternative_block(const block& b, const crypto::
{
if(m_checkpoints.is_height_passed_zone(get_block_height(b), get_current_blockchain_height()-1))
{
LOG_PRINT_RED_L0("Block with id: " << id << ENDL << " for alternative chain, is under checkpoint zone, declined");
LOG_PRINT_RED_L0("Block with id: " << id << "[" << get_block_height(b) << "]" << ENDL << " for alternative chain, is under checkpoint zone, declined");
bvc.m_verifivation_failed = true;
return false;

Expand Down
7 changes: 7 additions & 0 deletions utils/api_response.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": 1234,
"jsonrpc": "2.0",
"result": {
"status": "OK"
}
}
11 changes: 11 additions & 0 deletions utils/clone_telepod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"method": "clonetelepod",
"params":{
"tpd": {
"account_keys_hex": "01110101010102010108146d5f6372656174696f6e5f74696d657374616d700569b2465400000000066d5f6b6579730c0c116d5f6163636f756e745f616464726573730c08126d5f7370656e645f7075626c69635f6b65790a80d6a6a6e013b6e27d36556365bed8a74f6170d05f4e14b8010fe6c46702606bf2116d5f766965775f7075626c69635f6b65790a808531105c22af172f104db7a38dd4352cb2990f6736bcecdeea9af447b51bc732126d5f7370656e645f7365637265745f6b65790a8033cea1391891058baf3cfe6fb0d51e73a716719461bbf1c81d9a379ccff1ed08116d5f766965775f7365637265745f6b65790a80f4b85d42ed6f95fb769678ef53f03732475611c0bc5fe26dbb53ff6bb971f30b",
"basement_tx_id_hex": "ec936269b953b7b09dd93aca24222e4fdf5ff4fea1d3d8d511784388248776ec"
}
},
"id": 1234
}

8 changes: 8 additions & 0 deletions utils/make_telepod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"method": "maketelepod",
"params":{
"amount": 1000000000000
},
"id": 1234
}

11 changes: 11 additions & 0 deletions utils/telepod_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"method": "telepodstatus",
"params":{
"tpd": {
"account_keys_hex": "01110101010102010108146d5f6372656174696f6e5f74696d657374616d700569b2465400000000066d5f6b6579730c0c116d5f6163636f756e745f616464726573730c08126d5f7370656e645f7075626c69635f6b65790a80d6a6a6e013b6e27d36556365bed8a74f6170d05f4e14b8010fe6c46702606bf2116d5f766965775f7075626c69635f6b65790a808531105c22af172f104db7a38dd4352cb2990f6736bcecdeea9af447b51bc732126d5f7370656e645f7365637265745f6b65790a8033cea1391891058baf3cfe6fb0d51e73a716719461bbf1c81d9a379ccff1ed08116d5f766965775f7365637265745f6b65790a80f4b85d42ed6f95fb769678ef53f03732475611c0bc5fe26dbb53ff6bb971f30b",
"basement_tx_id_hex": "ec936269b953b7b09dd93aca24222e4fdf5ff4fea1d3d8d511784388248776ec"
}
},
"id": 1234
}

12 changes: 12 additions & 0 deletions utils/telepod_withdraw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"method": "withdrawtelepod",
"params":{
"tpd": {
"account_keys_hex": "01110101010102010108146d5f6372656174696f6e5f74696d657374616d700597b4465400000000066d5f6b6579730c0c116d5f6163636f756e745f616464726573730c08126d5f7370656e645f7075626c69635f6b65790a80d1adc7608947ec7b41c8716be4f05e9d33bf0169b9f7048c2af765b4f44313ec116d5f766965775f7075626c69635f6b65790a809ba2aa6b43f127bf5816d0f054814d606a685270c860a9f66c72e444d78da019126d5f7370656e645f7365637265745f6b65790a80a38f07ed3c9def7ddd0872d9dc1dc11b0e4f5d0df28232476c657f0c67d4680c116d5f766965775f7365637265745f6b65790a806d76b4e5f30777e8ef9f9bf3217d128f910c1c5ee199ab13c73528f58c723102",
"basement_tx_id_hex": "57ed781e6f599eb6a9fb33d768b92432cb4e052cb27be3860ed0525a84a32872"
},
"addr": "1HNJjUsofq5LYLoXem119dd491yFAb5g4bCHkecV4sPqigmuxw57Ci9am71fEN4CRmA9jgnvo5PDNfaq8QnprWmS5uLqnbq"
},
"id": 1234
}

2 changes: 1 addition & 1 deletion utils/test_wallet_rpc_api.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
wget --post-file="payment_request.json" --output-document="api_response.txt" --debug http://127.0.0.1:9999/json_rpc
wget --post-file="telepod_withdraw.json" --output-document="api_response.txt" --debug http://127.0.0.1:9999/json_rpc
pause

0 comments on commit d188d7a

Please sign in to comment.