Michał Sałaban
24e3e4f822
Add test of v1 transactions
3 years ago
Michał Sałaban
9674aa1e9b
Add tests on coinbase transactions
3 years ago
Michał Sałaban
ee03a86d8c
Add first working version of output recognition; add tests
3 years ago
Michał Sałaban
1e98fe1cc0
Add draft of output recognition
3 years ago
Michał Sałaban
7d3ec1a2e5
Add reference to tx in OneTimeOutput; add exception
3 years ago
Michał Sałaban
646ae2ba2e
Merge branch 'onetimeout' of https://github.com/jeffro256/monero-python into jeffro256-onetimeout
3 years ago
Michał Sałaban
f4de87c132
Move prune_transactions argument to the JSONRPC backend;
...
Add tests
3 years ago
Michał Sałaban
6cb72f81f3
Add tests for #88
3 years ago
Jeffrey Ryan
5acd4ec466
Improved test coverage for daemon ( #86 )
...
Added test coverage for:
1. `headers` method
2. failing an RPC request
3. fetching a single transaction
3 years ago
Jeffrey Ryan
7749596e47
Add support for one-time outputs
...
This PR is extremely similar to PR #78 . However, it now is based off of the backends refactor
in PR #82 .
Changes:
1. Added `OneTimeOutput` class in `transaction.py`
2. Added `output_indices` attribute to `Transaction`
3. Added `outputs` property to `Transaction`
4. Changed `_do_get_transactions` code to populate `output_indices` with fetched data
5. Updated tests
Thanks for your hard work.
3 years ago
Michał Sałaban
73ad95650e
Jsonrpc backend refactor ( #82 )
...
* Refactoring `backends` submodule
Co-authored-by: Jeffrey Ryan <jeffaryan7@gmail.com>
3 years ago
Michał Sałaban
a30ff4ddc9
Put more elaborate test names
3 years ago
Jeffrey Ryan
e929312e1a
Default backends for Daemon and Wallet
...
If no backend is specified, then the backend defaults to
JSONRPCDaemon and JSONRPCWallet for Daemon and Wallet, respectively.
Also if no backend is specified, then any kwargs passed to Daemon
and Wallet initializers will be used to construct a backend with
the default JSONRPC- backends. This will make using Daemon and
Wallet much more seamless for the user.
The following code snippets are functionally identical:
Old:
```
from monero.daemon import Daemon
from monero.backends.jsonrpc import JSONRPCDaemon
daemon1 = Daemon(JSONRPCDaemon())
daemon2 = Daemon(JSONRPCDaemon(host='node.xmr.to'))
```
New:
```
from monero.daemon import Daemon
daemon1 = Daemon()
daemon2 = Daemon(host='node.xmr.to')
```
3 years ago
Michał Sałaban
40102bc21e
Add test on transaction request chunking
4 years ago
Michał Sałaban
941e36cab9
Add missing test data
4 years ago
Michał Sałaban
35bb9cae94
Remove excess 'destinations' from incoming payments, fix #71
4 years ago
Michał Sałaban
5cad782b3b
Add tests on fee
4 years ago
Michał Sałaban
36af7fd8ee
Add test on mempool vs tx_id
4 years ago
Michał Sałaban
74704a9b37
Split mempool tests into more granular ones
4 years ago
Michał Sałaban
3ad3a6082b
Fix encoding errors on send_transaction()
4 years ago
Michał Sałaban
c6256fe4e1
Add comparison handling to Block, fix reward type
4 years ago
Michał Sałaban
1b503fd0ab
Add Block class and handling
4 years ago
Michał Sałaban
ccf5066739
Make daemon return net as in monero.const, cache the value
4 years ago
Michał Sałaban
6e410d9624
Introduce monero.const, simplify net check methods and deprecate old API
4 years ago
Michał Sałaban
44d87be2e6
Add retrieval of transaction from daemon
5 years ago
Michał Sałaban
8f888d2aca
Optimize retrieval of master address
5 years ago
Michał Sałaban
a184c3bea2
Make Address accept bytes/str too
5 years ago
Michał Sałaban
b70c3fbc43
Add __format__() to Address
5 years ago
Michał Sałaban
d44d4fd2ac
Add payment filtering by tx_id
5 years ago
Michał Sałaban
f76311d03e
Test hash equality
5 years ago
Michał Sałaban
c2af7acc31
Update .new_address() method to return subaddress index
5 years ago
Michał Sałaban
48cad4007a
Add `sweep_all()` method, close #20
5 years ago
Michał Sałaban
64149f6323
Fix minor bugs in JSONRPC daemon backend and offline wallet, add tests
5 years ago
Michał Sałaban
a7c8579b13
Check type of amounts passed to conversion, avoid MemoryError when a string is being concatenated 10^12 times. Close#48
5 years ago
Michał Sałaban
864829b858
Properly handle account labels
5 years ago
Michał Sałaban
d81b29182f
Fix bug in destinations amounts
5 years ago
Michał Sałaban
3b832040c6
Add range check
5 years ago
Michał Sałaban
d0a2d35176
Add offline subaddress generation
5 years ago
Michał Sałaban
6c1f667840
Merge branch 'master' into 0.5.x
5 years ago
Michał Sałaban
bab0099419
Rearrange address class hierarchy
6 years ago
Michał Sałaban
000a1d5cff
Issue a warning when filtering by height but also asking for mempool transactions, fix #37
6 years ago
Michał Sałaban
e3dcc96a60
Add secret key checking methods
6 years ago
Michał Sałaban
9d03995092
Remove the ringsize parameter
6 years ago
Michał Sałaban
91c720ecee
Sort payments by height (descending) and mempool on top
6 years ago
Michał Sałaban
915590780f
Add methods for exporting/importing outputs and key images
6 years ago
Michał Sałaban
42dbaa7c98
Update to scheduled hard fork v8, warn about deprecation of dynamic ring size
6 years ago
Maciej Urbanski
164f6afb7c
slightly better base58 (still ugly tho)
6 years ago
Maciej "RooTer" Urbański
12e69da496
continuous integration goodies from rooterkyberian ( #26 )
...
* continuous integration goodies
* fixed test_address not running
* fixup `python setup.py test`
* fixup readme.rst formatting
6 years ago
Michał Sałaban
7176f3fa0f
Properly raise exceptions in base58 code; partial fix for #27
6 years ago
Michał Sałaban
b14770ea5a
Instantiate the address returned by Seed
6 years ago