Commit Graph

13462 Commits

Author SHA1 Message Date
Jason Rhinelander 33bcf7e70c Add missing lokinet/ss versions to RPC 2021-04-18 22:20:10 -03:00
Jason Rhinelander bdebfda9f8 Re-do how SS ping tests are handled
This moves all the responsibility of ping testing (deciding when it's
unreachable, etc.) into oxend, allowing for better reporting on SS ping
results and eliminating some edge cases that can lead to oxend and
storage server getting "stuck" thinking each is in a different state.
2021-04-18 22:20:10 -03:00
Jason Rhinelander 3b4c8f4a5d Make get_human_time_ago use `seconds` rather than ints 2021-04-18 22:20:10 -03:00
Jason Rhinelander eda03d1590
Merge pull request #1432 from jagerman/ss-updates
Storage server RPC updates
2021-04-18 22:19:13 -03:00
Sean 8ee6f61123
Merge pull request #1433 from darcys22/reduce-fees
reduce fees
2021-04-19 10:35:23 +10:00
Sean Darcy 137ba14ea3 reduce ONS fee 2021-04-19 09:45:18 +10:00
Sean Darcy 5041dd7726 reduce fees 2021-04-19 09:45:10 +10:00
Sean 3f561605e8
Merge pull request #1435 from darcys22/mac-tests-failing
initialise mapping_value
2021-04-16 15:13:33 +10:00
Sean Darcy 440c4ca7c4 initialise mapping_value 2021-04-16 13:40:35 +10:00
Sean 53602f5a45
Merge pull request #1434 from darcys22/misc-fixes
Misc fixes
2021-04-15 16:47:47 +10:00
Sean Darcy cb8a7d4a43 Use fs::exists from common tools 2021-04-15 15:47:45 +10:00
Sean Darcy d05f514c1f Wrong constant name 2021-04-15 14:23:36 +10:00
Sean 7b882ac5ae
Merge pull request #1386 from darcys22/api-list-stakes
Api for staked amount on pending transactions
2021-04-15 11:21:00 +10:00
Sean 3326ca17e8
Merge pull request #1428 from darcys22/burn-param
Burn param
2021-04-15 11:09:30 +10:00
Jason Rhinelander 9e9830da0e Remove limit on burned fee
The reason behind the limit is that the burn amount was supposed to be
encoded using varint encoding and therefore the limit was to make sure
that once we figured out the final burn amount and put it in, we were
guaranteed not to be making the TX extra any bigger (just in case that
could end up making the overall tx get a couple bytes bigger and break
the tx size limit).

However, it never actually *used* varint encoding: instead it is encoded
as a raw, full size uint64_t value of 8 bytes regardless of the value,
so this check is not actually doing anything.  (And if we changed it
to a varint we'd break the protocol, so just leave it).

It also turns out that this comment was wrong:

    This value (~4398 OXEN) was chosen because it's unlikely to ever be
    needed to be burned in a single transaction

Also I hear that some users really do need more than 640kB RAM. ;-)
2021-04-15 10:58:03 +10:00
Jason Rhinelander 563a4984e4 Make extra burn apply to any tx type, not just blink/ONS 2021-04-15 10:58:03 +10:00
Jason Rhinelander 56088ba274 Switch burn= parsing to use parse_amount 2021-04-15 10:58:03 +10:00
Sean Darcy 71ab07f032 merge conflicts 2021-04-15 10:58:03 +10:00
Sean b4c483b9bf
Merge pull request #1403 from darcys22/1402-ons-names-for-transfers
Support for ONS wallet mappings
2021-04-15 10:49:51 +10:00
Sean Darcy 34f845543d uninitialised tests 2021-04-15 10:43:07 +10:00
Sean Darcy 3993e6594c rename ons_owners_by_names merge wallet and session name check 2021-04-14 17:25:53 +10:00
Sean 4dd3825e66
Update src/cryptonote_core/oxen_name_system.cpp
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2021-04-14 16:28:55 +10:00
Sean 1c730d9084
simplify encrypted wallet length check
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2021-04-14 16:28:30 +10:00
Sean Darcy 961e14f50b refactor wallet decrypting 2021-04-14 16:27:23 +10:00
Sean 65faa80b64
Merge pull request #1421 from buccella/add_dockerfile
Add Dockerfile and build script
2021-04-14 16:06:48 +10:00
Sean b4bcb2331b
Merge pull request #1418 from darcys22/export-transfer-rpc
Export transfer rpc
2021-04-14 16:03:26 +10:00
Sean Darcy 3f38d00796 Remove magic numbers and enforce nettype for is_valid_address 2021-04-14 15:12:29 +10:00
Sean 4e147ea863
Update src/cryptonote_core/oxen_name_system.cpp
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2021-04-14 14:12:36 +10:00
Sean Darcy ffa94f306a to readable value shows wallet address 2021-04-14 12:00:32 +10:00
Sean Darcy e8ac702733 update tests for valid address 2021-04-12 15:17:37 +10:00
Sean Darcy 3765e4e91f ONS purchase guesses wallet if the value is address 2021-04-12 15:10:24 +10:00
Sean Darcy 3030277b6a Move RPC for ons resolve address into ons resolve and decrypt wallet side 2021-04-12 10:27:57 +10:00
Sean Darcy 52ecd26b0d bump HF 2021-04-12 10:27:57 +10:00
Sean Darcy 83230fb4f5 big and small int binding for sqlite statements 2021-04-12 10:27:57 +10:00
Sean Darcy 8023b59867 rebrand lns -> ons 2021-04-12 10:27:57 +10:00
Sean Darcy 928ad2c668 Enable ONS mapping type=wallet and resolve ONS wallet addresses 2021-04-12 10:27:57 +10:00
Sean Darcy b28494c769 return string of CSV data rather than write to file 2021-04-12 10:25:28 +10:00
Sean Darcy 8660b85408 added new wallet RPC method for export transfers 2021-04-12 10:12:24 +10:00
Jason Rhinelander bb42e781af Remove unused, unenforced blockchain testing endpoint 2021-04-08 14:50:03 -03:00
Jason Rhinelander ce9d0a9c1e Storage server RPC improvements
Improves the oxend<->storage server communications protocol:

- pass storage server HTTPS port as part of the storage server ping
(which already carries the also-required OMQ port) rather than needing
to provide it when starting up oxend.  --storage-server-port is now
obsolete (and ignored, if specified).
- Fix up the internal API to use `storage_https_port` and
`storage_omq_port` rather than `storage_port` and `storage_lmq_port`.
- Redo and the SS ping RPC endpoint so that it is less verbose and more
closely matches the lokinet endpoint; instead of:

    { "version_major": 2, "version_minor": 0, "version_patch": 9, "storage_lmq_port": 22222 }

we now expect:

    { "version": [2,0,9], "https_port": 11111, "omq_port": 22222 }

- Tweaks the (not-yet-released) SS proof key names: "s"->"shp" and "slp"->"sop"
2021-04-08 13:42:33 -03:00
Jason Rhinelander 2f5ec0e1e6 lmq -> omq internal rename
More rebrand updates to rename lmq (lokimq) internals with omq (oxenmq).
2021-04-08 13:38:51 -03:00
Jason Rhinelander 944ff226d0
Merge pull request #1407 from jagerman/network-test-fixes
Network test fixes
2021-04-07 18:39:07 -03:00
Sean ea22de82ff
Merge pull request #1427 from Joshalosh/dev
Fix up most loki links to point to oxen
2021-03-30 12:56:25 +11:00
Joshalosh 8b9f6b6011 Fix up most loki links to point to oxen 2021-03-30 10:56:21 +11:00
Sean 3ae2398600
Merge pull request #1426 from jagerman/utils-cleanup
Clean up unused/unmaintained contrib and utils
2021-03-29 13:34:09 +11:00
Sean 2d68e889d7
Merge pull request #1424 from jagerman/sn-status-cleanup
print_sn_status cleanup
2021-03-29 13:30:30 +11:00
Jason Rhinelander c8371384ce
Merge pull request #1408 from jagerman/wallet-lock-fix
Wallet lock fix
2021-03-28 22:11:12 -03:00
Jason Rhinelander f3325f9ec8 Clean up unused/unmaintained contrib and utils
Everything removed here is unsupported and doesn't work (leftover stuff
from Monero).
2021-03-28 22:08:45 -03:00
Jason Rhinelander b1344e919c Show both all & some reasons
Suffix "(some)" onto reasons in any but not in all.
2021-03-28 22:08:19 -03:00
Jason Rhinelander 1c2db6fe34 Move Current Status to the bottom of the status list
This makes it easier to pick out at a glance.

Also adds "Current Status: awaiting contributions" if not fully
contributed.
2021-03-28 22:08:19 -03:00