Commit Graph

13449 Commits

Author SHA1 Message Date
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
Jason Rhinelander 7d78f48305 Current Status: ACTIVE; fallback to any (or no) reasons
The status doesn't have a nice way to tell it is active or awaiting
contributions, so add it.

If "all" reasons don't give any results then try showing the "any"
reasons, and if that doesn't work, show a "reason(s) not available"
message.
2021-03-28 22:08:19 -03:00
Jason Rhinelander 5a05bd5e41 Make print_sn_status more compact
- Put SS/lokinet version on same line
- make checkpoint/pulse/timestamp/timesync each take one line instead of
  three
- instead of [height,round,vote] for pulse just print [height,vote] and
add a '+R' on height if for a pulse round > 0.
- remove the space after the , in the checkpoint/pulse/etc. lines to
save a little
2021-03-28 22:08:19 -03:00
Jason Rhinelander d524d560c7
Merge pull request #1369 from darcys22/1363-reason-field-deregistrations
1363 reason field deregistrations
2021-03-28 22:07:49 -03:00
Sean Darcy 057711a026 Test suite fix for HF18
Governance reward calculations were hard-coded for == HF17 rather than
>= 17, so for HF18 it was falling back to the old "add up all the
values" method that we used to use.  Updated it to support HF18, and add
a static_assert that will fail to compile (without a fix) when we add
HF19.

Also some minor cleanups (mostly indent changes for unnecessary blocks
-- ignore whitespace when looking at the diff).
2021-03-28 22:04:45 -03:00
Chris Buccella b787600579 Add oxend Dockerfile and build script
Add a Dockerfile and build script for:
  - an Ubuntu base container (Ubuntu 20.04 + oxen repo)
  - an oxend container, using the base container
2021-03-29 00:18:21 +00:00
Jason Rhinelander 9194defd20 Fix RPC to return coded strings, not readable; shorten codes
The RPC was returning readable strings instead of coded strings.

Also shorten the returned codes because they were a bit lengthy, and
document them in the RPC comment.
2021-03-26 18:57:49 -03:00
Jason Rhinelander e4e48f983a Show decomm reasons in `oxend status` 2021-03-26 17:40:35 -03:00
Jason Rhinelander 9fae78d68a Expose reasons in rpc tx_extra details 2021-03-26 17:22:15 -03:00
Jason Rhinelander 9f7b7ed666 Invert and/or logic for reason codes
Fixes broadcast reasons being set to 0.
2021-03-26 17:19:10 -03:00
Jason Rhinelander d75fa1e510 Add state_change compilation in test suite
The state_change constructor changed (to include a version + reasons),
this updates the test suite to match.
2021-03-26 15:25:12 -03:00
Sean Darcy ded6e6bbf4 Add multiple decommission reasons to output. 2021-03-26 15:25:12 -03:00
Sean Darcy b631575c32 enum type 2021-03-26 15:25:12 -03:00
Sean Darcy 10c3c3f0df print reason for decommission 2021-03-26 15:25:12 -03:00