Comments (3)
Hi!
So it's a good start. I didn't try to implement this.
The next big question - does zcashd have the same API to get history of regular shielded transactions
I suggest you to try tests. Recently I've created tests for each currency. Each tests runs cryptocurrency daemon in docker and uses testnet to get real transaction.
To run tests simple install docker and run docker-compose up
in django-cc dir
Zcash tests runs pretty long, because of the shielded transactions.
If these tests will pass on your branch, then it is possible to get this feature into django-cc
Zcash tests https://github.com/limpbrains/django-cc/blob/master/cc/tests/tests_zcash_regtest.py
Cheers
from django-cc.
Yea, I believe in TDD. :)
I wish I knew enough about design patterns to be able to add a wrapper to add this functionality without modifying your app at all, I think the idiosyncrasies of this fork is going to be so different...
I'm still kinda new and learning what all the API calls do, but each z_address maintains it's own balance among the private total.
You can't query private txs like you can do on a public blockchain. There's no explorer on this thing at all, so if the daemon doesn't catch the operation... I think.
I'm going over the tests_mock module now. Can you tell me if the following tests are supposed to fail? It seems that the assertions should fail, IDK if there's something I'm missing here.
def test_active_address(self):
active = Address.objects.create(address='1111111111111111111114oLvT2', wallet=self.wallet, currency=self.btc, active=True)
Address.objects.create(address='1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i', wallet=self.wallet, currency=self.btc, active=False)
self.assertEqual(self.wallet.get_address(), active)
def test_unused_address(self):
unused = Address.objects.create(address='1Eym7pyJcaambv8FG4ZoU8A4xsiL9us2zz', wallet=self.wallet, currency=self.btc, active=False)
Address.objects.create(address='LRNYxwQsHpm2A1VhawrJQti3nUkPN7vtq3', currency=self.ltc, active=True)
self.assertEqual(self.wallet.get_address(), unused)
from django-cc.
No, they should not fail. Both are fine
from django-cc.
Related Issues (20)
- start ui error HOT 4
- Missing documentation? HOT 1
- cant start celery HOT 4
- Support USDT HOT 1
- celery call cc.tasks.refill_addresses_queue don't work HOT 5
- How i insert this address on a view HOT 37
- When adding a new currency, what should "last_block" be? HOT 1
- refill_address_queue key error HOT 1
- Generation of new address HOT 5
- running celery tasks as celery beat task HOT 5
- Improve documentation
- Negative balance HOT 1
- Multisig transactions HOT 1
- monero support HOT 2
- Any plans to add bech32 validator support? HOT 1
- Multi-sig supported? HOT 1
- kkk
- Thread or process safety issues HOT 1
- docker-compose start HOT 2
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 django-cc.