This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"addressees":[{"address":"2N4He7WLhDiyGsoDAVniggyMhSifeHrdNWW","satoshi":100000}],"fee_rate":6871532,"send_all":false,"utxos":[{"block_height":1413392,"pt_idx":1,"rbf_optin":false,"script_type":14,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":"9697289"},{"block_height":1413392,"pt_idx":0,"rbf_optin":false,"script_type":10,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":"100"},{"block_height":1413391,"pt_idx":0,"rbf_optin":false,"script_type":10,"subaccount":0,"txhash":"f450688a7243d752e1755382bacb9e0e648f3b6c9bc67bf932e2d196e52bdc4c","value":"100"},{"block_height":1413391,"pt_idx":1,"rbf_optin":false,"script_type":14,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":"8000652"},{"block_height":1413391,"pt_idx":0,"rbf_optin":false,"script_type":10,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":"100"},{"block_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"addressees":[{"address":"2NBPL7XhvnUaB2LakZa774g9sFBQ7Kmd9HE","satoshi":100000}],"fee_rate":6871532,"send_all":false,"utxos":[{"block_height":1413392,"rbf_optin":false,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":9697289},{"block_height":1413392,"rbf_optin":false,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"f450688a7243d752e1755382bacb9e0e648f3b6c9bc67bf932e2d196e52bdc4c","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":8000652},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"3234b956c6961b80ee5695017e6cc47372ed2f330a728eb16742f9e77d6872a9","value":96450},{"block_he |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"addresses":[{"address":"2N6nH6VvvQPBqDwexqm1Bb4mtd97xZ73hPA","satoshi":100000}],"fee_rate":6871532,"send_all":false,"utxos":[{"block_height":1413392,"rbf_optin":false,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":9697289},{"block_height":1413392,"rbf_optin":false,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"f450688a7243d752e1755382bacb9e0e648f3b6c9bc67bf932e2d196e52bdc4c","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":8000652},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","value":100},{"block_height":1413391,"rbf_optin":false,"subaccount":0,"txhash":"3234b956c6961b80ee5695017e6cc47372ed2f330a728eb16742f9e77d6872a9","value":96450},{"block_hei |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"addresses":[{"address":"2NC3n7WR6QvTM9zQ4Xd4z5ejMuHUHzwWZtU","satoshi":100000}],"fee_rate":6871532,"send_all":false,"utxos":[{"block_height":1413392,"created_at":null,"data":null,"fee":null,"memo":null,"rbf_optin":false,"size":null,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","type":null,"value":9697289},{"block_height":1413392,"created_at":null,"data":null,"fee":null,"memo":null,"rbf_optin":false,"size":null,"subaccount":0,"txhash":"1acf8719ec531998a6af09082028dcfda1821233694deab608633043cd56486f","type":null,"value":100},{"block_height":1413391,"created_at":null,"data":null,"fee":null,"memo":null,"rbf_optin":false,"size":null,"subaccount":0,"txhash":"f450688a7243d752e1755382bacb9e0e648f3b6c9bc67bf932e2d196e52bdc4c","type":null,"value":100},{"block_height":1413391,"created_at":null,"data":null,"fee":null,"memo":null,"rbf_optin":false,"size":null,"subaccount":0,"txhash":"01f1630b5591b7aff991a5a0d0037b58de89807fbf9b8e285a958de217819898","type":null,"value":800065 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Testnet", | |
"network": "testnet", | |
"liquid": false, | |
"gait_wamp_url": "wss://testwss.greenaddress.it/v2/ws/", | |
"gait_wamp_cert_pins": [ | |
"25:84:7D:66:8E:B4:F0:4F:DD:40:B1:2B:6B:07:40:C5:67:DA:7D:02:43:08:EB:6C:2C:96:FE:41:D9:DE:21:8D", | |
"A7:4B:0C:32:B6:5B:95:FE:2C:4F:8F:09:89:47:A6:8B:69:50:33:BE:D0:B5:1D:D8:B9:84:EC:AE:89:57:1B:B6" | |
], | |
"blockexplorers": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Bitcoin", | |
"network": "mainnet", | |
"liquid": false, | |
"gait_wamp_url": "wss://prodwss.greenaddress.it/v2/ws/", | |
"gait_wamp_cert_pins": [ | |
"25:84:7D:66:8E:B4:F0:4F:DD:40:B1:2B:6B:07:40:C5:67:DA:7D:02:43:08:EB:6C:2C:96:FE:41:D9:DE:21:8D", | |
"A7:4B:0C:32:B6:5B:95:FE:2C:4F:8F:09:89:47:A6:8B:69:50:33:BE:D0:B5:1D:D8:B9:84:EC:AE:89:57:1B:B6" | |
], | |
"blockexplorers": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Daneel", | |
"network": "testnet", | |
"liquid": false, | |
"wamp_url": "wss://testwss.greenaddress.it/v2/ws/", | |
"wamp_url_onion": "ws://gu5ke7a2aguwfqhz.onion/v2/ws/", | |
"wamp_cert_pins": [ | |
"25:84:7D:66:8E:B4:F0:4F:DD:40:B1:2B:6B:07:40:C5:67:DA:7D:02:43:08:EB:6C:2C:96:FE:41:D9:DE:21:8D", | |
"A7:4B:0C:32:B6:5B:95:FE:2C:4F:8F:09:89:47:A6:8B:69:50:33:BE:D0:B5:1D:D8:B9:84:EC:AE:89:57:1B:B6" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testException() throws Exception { | |
String digest = "c858838f62f908c922f9cd734e49c8fa6ee9a3b8a77093ac0969cba429249412"; | |
byte[] digestByte = DatatypeConverter.parseHexBinary(digest); | |
Timestamp root= new Timestamp(digestByte); | |
String cata = "8BCFyeyt8QrzbwD7hc19Q6qyCPEguegXhF+Mvxbp/oHWCvX0gzpesI04rfV/cjXbvxDva2oI8SCO80/pScKWh2fGvNW5Gbjuf5j+Wa17AOoSrfZ7jCOFCwjxBFq5QzrwCCmEIs1jUPlD/wCD3+MNLvkMjiMiaHR0cHM6Ly9idGMuY2FsZW5kYXIuY2F0YWxsYXh5LmNvbQjxIN2HOOPNo6ibx5pEUshCgNQO+2WQ+3uy8HCcjJV8WmPoCPAgQ9TGTeAfsKVS5+bqQ1C9772QT9t0N4EWDXj1IAWlq74I8SCp20ylUoZafC03vehOB8YYj6nF9suGxisoP8a84npxQQjxIObarGShfxGy1oeDgER/1eRn+Nw5ChqX4fCZ8qbM9ZN3CPEgNkzIG/vskOaMl+6dxbCtl3/BDgjKB0kA+5xH1452lJwI8SDVRsFsHsMfnO7izZqDXV++swAxwqc+tx5Vsq4p7o0sSAjxIKnihRE3c3THLZCuA+rXal1NWISs0dA21hR9JF2IWSktCPAg0aDyCEb2yNHaAlkjqUQ5IjEWCNglmCFp1/Yxiyw2GfEI8CAIo0GR1CesJ42uD+x0pfGDvNAlg3Bq2oBjhP68oFGFnAjxIGofEmB9xJ6UzP+gm+Kn7svCR0yK9A4pwDzT6bwzJXkOCPFxAQAAAAGhLAL67vrH6gPmi5x2RyB4yNSNDsVp4idtjo3B0CtjFQAAAAAXFg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate futures; | |
extern crate tokio; | |
use futures::{Future, Async, Poll}; | |
use std::thread; | |
use futures::sync::oneshot::Receiver; | |
use std::time; | |
use tokio::executor::current_thread; | |
pub struct FutureSender { |