Comments (9)
-
Can you fix that?
-
Those weren't failing on my end but we can pull them out, unless those are generic ones and will be fixed by adding another testnet endpoint. Only have the one. Would rather add a second testnet endpoint and have those tests working, unless they are API-specific and not generic NetworkAPI.
-
That should work, but the whole thing is kinda glitchy. Needs to be made more robust.
from bitcash.
- Yep included in custom pushdata PR
- I'll see if it's possible to get these working...or if it's an API issue.
- Okay. That's all good. Just wondered. Thanks :)
from bitcash.
Sounds good, thank you! No problem.
from bitcash.
Hey! I'm getting failed tests now.
nosetests -vx
...
tests.test_wallet.TestPrivateKeyTestnet.test_get_unspent ... ok
tests.test_wallet.TestPrivateKeyTestnet.test_init_default ... ok
tests.test_wallet.TestPrivateKeyTestnet.test_repr ... ok
tests.test_wallet.TestPrivateKeyTestnet.test_send ... ERROR
======================================================================
ERROR: tests.test_wallet.TestPrivateKeyTestnet.test_send
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/user/repos/bitcash/tests/test_wallet.py", line 245, in test_send
private_key.send([('n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi', 10000, 'satoshi')])
File "/home/user/repos/bitcash/bitcash/wallet.py", line 586, in send
outputs, fee=fee, leftover=leftover, combine=combine, message=message, unspents=unspents
File "/home/user/repos/bitcash/bitcash/wallet.py", line 547, in create_transaction
return create_p2pkh_transaction(self, unspents, outputs, custom_pushdata=custom_pushdata)
File "/home/user/repos/bitcash/bitcash/transaction.py", line 292, in create_p2pkh_transaction
script = hex_to_bytes(unspent.script)
File "/home/user/repos/bitcash/bitcash/utils.py", line 26, in hex_to_bytes
if len(hexed) & 1:
TypeError: object of type 'NoneType' has no len()
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): tbch.blockdozer.com
urllib3.connectionpool: DEBUG: https://tbch.blockdozer.com:443 "GET /api/addr/bchtest:qzvsaasdvw6mt9j2rs3gyps673gj86flev3z0s40ln/utxo HTT
root: DEBUG: Estimated fee: 19848 satoshis for 4962 bytes
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 145 tests in 35.873s
FAILED (errors=1)
Can you take a look into this?
from bitcash.
My internet is down all this week and need to arrange it to be fixed (again) and I have some serious deadlines at work. I don't know when I will be able to. I can't think of why anything I've changed would affect testnet but leave mainnet perfectly happy... I can look when I get internet back and see if I can generate the same error code though...
I wonder if it works with the latest release before all the changes...
from bitcash.
Alright, thanks for letting me know. Sorry for the wait on my end.
I'll take a stab unless I see something from you on it. I just don't want to assume anything about the code and break what you've written.
from bitcash.
I can't help sorry. I'm snowed under. Lots of other stuff to take care of now.
from bitcash.
Ok, thanks for letting me know! Appreciate your contributions thus far :).
from bitcash.
I think this can be closed too @teran-mckinney :)
from bitcash.
Related Issues (20)
- message option (OP_RETURN) not working HOT 4
- Issue with unspents HOT 6
- send() no longer pulls in unspents HOT 5
- ValueError: "0" is an invalid base58 encoded character. on PrivKeyTestnet HOT 2
- Remove hex_to_wif() from documentation HOT 1
- ConnectionError: All APIs are unreachable HOT 6
- How to sweep all BTC from wallet HOT 1
- ERROR: Could not build wheels for coincurve HOT 1
- Unsupported hash type ripemd160 HOT 9
- Cash Tokens support CHIP-2022-02-CashTokens HOT 1
- wallet balance not accurate HOT 1
- wallet balance not synced (same error as closed ticket) HOT 3
- Difference from `bit` HOT 5
- Cash address contains uppercase and lowercase characters HOT 3
- Unable to send more than one transaction within a block HOT 2
- Upgrade CI workflow actions
- Error while signing transaction: nft_commitment HOT 7
- How can you sign multiple inputs originating from various addresses? HOT 4
- Chain verification missing HOT 2
- Bitcash not creating valid transactions despite returning a TxID HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcash.