Created
April 24, 2019 14:30
-
-
Save willcl-ark/16bc89a0a3302ffbae5148bd030deb0d to your computer and use it in GitHub Desktop.
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
>>> all_backup = bob.export_all_channel_backups() | |
>>> type(all_backup.single_chan_backups) | |
<class 'lnd_grpc.protos.rpc_pb2.ChannelBackups'> | |
>>> bob.verify_chan_backup(single_chan_backups=all_backup.single_chan_backups) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/Users/satoshi/Documents/src/lnd_grpc/lnd_grpc/lightning.py", line 484, in verify_chan_backup | |
response = self.lightning_stub.VerifyChanBackup(request) | |
File "/Users/satoshi/Documents/src/lnd_grpc/.venv/lib/python3.7/site-packages/grpc/_channel.py", line 549, in __call__ | |
return _end_unary_response_blocking(state, call, False, None) | |
File "/Users/satoshi/Documents/src/lnd_grpc/.venv/lib/python3.7/site-packages/grpc/_channel.py", line 466, in _end_unary_response_blocking | |
raise _Rendezvous(state, None, None, deadline) | |
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with: | |
status = StatusCode.UNKNOWN | |
details = "only one Single is accepted at a time" | |
debug_error_string = "{"created":"@1556116022.154145000","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1039,"grpc_message":"only one Single is accepted at a time","grpc_status":2}" | |
> | |
>>> print(all_backup.single_chan_backups) | |
chan_backups { | |
chan_point { | |
funding_txid_bytes: "\2053\270\372q\263)\266\313[\005\t\022Vc]\273\230\273\236\274g\027\244\027\010\343\330\035\364~\270" | |
} | |
chan_backup: "\377B\372\362{\307#L\'y\206q\367\307\25463\362hc\2146iLi\3770l\236\t\205jq\305\323\357\222\210Y7\255\000\340\002\201\345\255R\366\nT\370Q_\251FD\224\351\262\362\274\256\311\267&.{\244-\266%\006\304\253\351\325B\205\320g2=<$:&\341\333\t{zK\013\321U\242\227D\313\'CK\300\256\343N\235\2348.\006\304]2\210\363\375:\037Kh\364G\254|O\351M\021\247\201B\030d\022\020\333\022\354f\237\333\300\313\206<\244\253\325x\247B\226)e\035L\027\231(\237\025a\206\364\010\242\010\342\016\264M\3776\267\030\032\312\272\227@\373\226\312\006\305ET\331\376\326\350?\303a\307D6\337!\331 \376\370\234\023Xa\032j*\237\352\351\224\227\337YA\302\362\363\210G\250\357\014\'\261\325M\361I\342#\343_u\377\025\351=d\254\272\034!\237k&\027\254L\306\206A\355\354r\336\352\363\373R\017+d9\364p\273zIQn\316\261\344\233l\032\304q\222-%%\236\213\031@T}-\361\212\273 NP}{3\267\310=\244\307\224\220X\2406\312\334y\201\024\205\341\302\360\024F\025,\030<\220\225\225s\217/Y\3338_l\316u\243y\013\301\003\'\371\370=\317\366ZA\036\022\017P\020\034\n\005A\376\\j\022\213\221\303\201\337\263\014`\243\326|\216O\237\214jjf\242\206\306\r\336/\331\251\014\274.z\020\203XC\302\352\347^\006\037>d\01425\037\255\250v\261" | |
} | |
chan_backups { | |
chan_point { | |
funding_txid_bytes: "\364\365\363\220\342\345i\224h\217\224\274Q/\246WtN\306em\341Mh\323%]\325\255\355U\376" | |
} | |
chan_backup: "\247\023{G\314\320\021\252\314y\035\375\265\365\223\371\227N\262\237Ap\210m\276\361p\267R\004\202\3416\271\252&l\332t\t\363\242?\374\227\201\026N\017 9hz\232\205\326~\027\242@\035\221\304\332\010\300^`\345:gy\275-\357\305\371[\373\207\210+s\333\203\270$$\t\nW!iO\351\2779(+*J`\332.>\244s\2537\023x\345S\270\332\270\315\363\364\355\356\366A\227\364_\2217\020\036\233\374\372\363o\242\277\264W6?\004\203T@\257V\251.\2508\256\354\352m\031\341I\347\274a}{DH\305\267|\205\341\"?\177\323o\305\255D$\255l**Db\227d\203E\317%H\205l\224\037\034:\207W<\013\306\335\326\204>\"h\223N\2110Q\266(O\000\233\222\247\347\003u\335\202\230+L6z\313 \344\017\356\316;I\020\355M\020;\256\267i\347\261\271\310\023\323\030\223\237\205YyO\\\030A\177\263x\273v\351H\007\270B\327\312>h2\300\206\013c\332G\305\257\221\214F\254d\321\023\373\207\2600\252\020\257\252Qb\340Y\365CH\302\'\1770\264aS\242\245\2566\"\227\005nQk\325\235\237\233\204Z\257_Nr[\371\337\010\020\035dW\237L\320\361\374\374R\366\031k\301\210\216\016LK2\345\01381\350\332q\007^\345\234\366f\000\321\366|\026\200()\261\360\262[\221[\336\320;{\356\341Y9\371\300\200\367{\n4%\335\374\251Q\'D[#\270Z\237\310\031\224\331" | |
} | |
>>> type(all_backup.single_chan_backups.chan_backups[0]) | |
<class 'lnd_grpc.protos.rpc_pb2.ChannelBackup'> | |
>>> bob.verify_chan_backup(single_chan_backups=all_backup.single_chan_backups.chan_backups[0]) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/Users/satoshi/Documents/src/lnd_grpc/lnd_grpc/lightning.py", line 483, in verify_chan_backup | |
request = ln.ChanBackupSnapshot(**kwargs) | |
TypeError: Parameter to MergeFrom() must be instance of same class: expected lnrpc.ChannelBackups got lnrpc.ChannelBackup. | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment