New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asyncio based on develop #261
Conversation
Do you have any estimates on what the optimal value for Bitcoin Core's |
I suspect there's a bug in bitcoin core. I didn't see it use more than 4 As for optimal, that comes down to disk speed, really. I think I was |
in API.rst, you are committing a conflict (thus the <<< >>> symbols)... can you add a commit to this to clean it up? |
actually, looking at the commits, that is MY fault. Jeez! I can get that fixed once we merge this in |
Aaah that explains why I had so many problems with that file. ;-) I kept trying to remove the merge conflict... |
yeah, looks like a merge gone bad on my part...if you can fix it, feel free to do so (the right version is the signature without the lock= parameter) |
Will do. I'm not entirely sure how this happened, and it might not be your |
@@ -384,9 +385,10 @@ def sort_unspent_txouts(unspent, allow_unconfirmed_inputs): | |||
return unspent | |||
|
|||
def private_key_to_public_key (private_key_wif): | |||
# allowable_wif_prefixes = [ | |||
allowable_wif_prefixes = [ b'\x80', b'\xef' ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to fix this---these values should be set in config.py
.
Can you rename |
Sure, how about {{{aio_wait_for()}}}? |
I guess I'd prefer something like |
It does take an (optional) time argument. ;-) I just wanted the name to somehow refer to the fact that it has to do with aiohttp and asyncio. It's your code, if you really want another name, tell me what to use. |
No, sure, that makes sense. How about |
Done. |
See #235. The only thing left is |
I'm not sure what you have in mind there... |
Just instead of hardcoding those two bytes in |
Rather:
|
Done. Note that this is due to an interface change in pycoin, and you'll have to upgrade it. (I didn't want to have to include this patch in my asyncio PR, but I don't know what version of pycoin you guys are running and I had to do this to get it to run) |
It's safe to upgrade to pycoin 0.50 btw. |
@@ -18,7 +18,7 @@ pytest==2.5.1 | |||
|
|||
pycoin==0.26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line correct, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want >= instead... For the windows build... Dont know if it will matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad idea. If they later push a breaking change it would wreak havok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should the value be? 0.50?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using 0.50 with no problems in clearinghoused that was released 3 weeks ago. Looks like he's upgraded to 0.51 but there is no 0.51 tag so I cant tell if the changes are OK. 0.50 is definitely fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.51 has been tagged, it's safe to use.
@mcelrath, bump |
@PhantomPhreak what do you need? |
@mcelrath, can you fix the pycoin version to 0.51? |
Sure thing, pushed. |
Asyncio based on develop
@mcelrath, I'm having some trouble getting |
I recall having this problem, and fixing it (on a different project). Can you try aiohttp 0.9.1dev and see if it is already fixed there? FWIW, I would not expose bitcoind to the external world if I were you. It's better to firewall it so it only accepts connections from localhost, in which case, SSL connections are just wasted CPU. |
Also, this message pops up sometimes randomly: |
I believe the poll message was fixed by Python 3.4.1. |
I tried using SSL with the latest from the aiohttp GitHub repo. No dice. I agree with you re: SSL, but the feature is there in Bitcoin Core, and some people (most notably exchanges) want it badly. I'm running Python 3.4.1, and I still see the |
The "Attempt to decode JSON..." message is from aiohttp. So the fix is to file a PR against aiohttp removing the message, or get web servers to report the correct mine-type. ;-) |
We worked around the JSON problem by just parsing the JSON externally. |
No description provided.