Giter Site home page Giter Site logo

Comments (9)

 avatar commented on August 19, 2024
  1. Can you fix that?

  2. 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.

  3. That should work, but the whole thing is kinda glitchy. Needs to be made more robust.

from bitcash.

AustEcon avatar AustEcon commented on August 19, 2024
  1. Yep included in custom pushdata PR
  2. I'll see if it's possible to get these working...or if it's an API issue.
  3. Okay. That's all good. Just wondered. Thanks :)

from bitcash.

 avatar commented on August 19, 2024

Sounds good, thank you! No problem.

from bitcash.

 avatar commented on August 19, 2024

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.

AustEcon avatar AustEcon commented on August 19, 2024

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.

 avatar commented on August 19, 2024

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.

AustEcon avatar AustEcon commented on August 19, 2024

I can't help sorry. I'm snowed under. Lots of other stuff to take care of now.

from bitcash.

 avatar commented on August 19, 2024

Ok, thanks for letting me know! Appreciate your contributions thus far :).

from bitcash.

merc1er avatar merc1er commented on August 19, 2024

I think this can be closed too @teran-mckinney :)

from bitcash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.