Comments (5)
Hi!
You need to periodically run refill_address_queue to have a reserve of new addresses. I've designed django-cc so it could work even if bitcoind is offline for some time.
It is a good practice to use each address only once. Unfortunately django-cc doesn't mark as active=False automatically. You can do this somehow. Probably it should be a new feature of django-cc, thanks for the idea.
from django-cc.
Thanks thats great, will this library work with an encrypted wallet?
Also consider leaving your btc wallet in the readme.
If I ever use this in production I'd like to donate.
from django-cc.
Another quick question, when I call the withdraw_to_address or transfer methods from the wallet model I am only able to pass in whole numbers as amounts to either withdraw or transfer between wallets.
Does this mean I can only transfer whole bitcoins or am I missing something and is there a way that I can enter decimal values for the amount of btc I wish to transfer.
The error im receiving when inputting a decimal value is: "unsupported operand type(s) for -: 'decimal.Decimal' and 'float'"
Thanks
from django-cc.
I'm using Decimal everywhere for amounts
Do not use float when you work with money to avoid problems with precision
In [2]: 0.1 + 0.2
Out[2]: 0.30000000000000004
from django-cc.
Thanks! Apologies for my foolishness
from django-cc.
Related Issues (20)
- start ui error HOT 4
- Missing documentation? HOT 1
- cant start celery HOT 4
- Support for shielded transactions HOT 3
- 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
- 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.