Commit Graph

1735 Commits

Author SHA1 Message Date
Luke Parker
6994d9329b Restore minimum Monero fee from develop 2024-07-07 01:07:21 -04:00
Luke Parker
d88bd70f7a Distinguish fee from necessary_fee in monero-wallet
If there's no change, the fee is difference of the inputs to the outputs. The
prior code wouldn't check that amount is greater than or equal to the necessary
fee, and returning the would-be change amount as the fee isn't necessarily
helpful.

Now the fee is validated in such cases and the necessary fee is returned,
enabling operating off of that.
2024-07-06 22:36:14 -04:00
Luke Parker
9e4d83bb2c Increase minimum Monero fee in processor
I'm truly unsure why this is required right now.
2024-07-06 22:03:19 -04:00
Luke Parker
1bfd7d9ba6 Don't attempt running tests on the verify-chain binary
Adds a minimum XMR fee to the processor and runs fmt.
2024-07-06 21:36:43 -04:00
Luke Parker
c521bbb012 Run Monero on Debian, even for internal testnets
Change made due to a segfault incurred when locally testing.

https://github.com/monero-project/monero/issues/9141 for the upstream.
2024-07-06 21:16:14 -04:00
Luke Parker
86facaed95 Correct the if check about when to mine blocks on start
Finally fixes the lack of decoy candidates failures in CI.
2024-07-06 21:14:30 -04:00
Luke Parker
d99ed9698e Again increase the amount of blocks we mine prior to running tests 2024-07-06 20:50:46 -04:00
Luke Parker
4743ea732c Fix weight estimation for RctType::ClsagBulletproof TXs 2024-07-06 20:36:11 -04:00
Luke Parker
3cf0b84523 Adjust how we mine the initial blocks due to some CI test failures 2024-07-06 20:17:17 -04:00
Luke Parker
c138950c21 Document v2 TX/RCT output relation assumed when scanning 2024-07-06 19:57:38 -04:00
Luke Parker
9f7dbf2132 Handle Monero fee logic properly in the processor 2024-07-06 18:46:41 -04:00
Luke Parker
6357bc0ed4 Remove unused dep from processor 2024-07-06 04:27:30 -04:00
Luke Parker
2334725ec8 Correct the accidental swap of stagenet/testnet address bytes 2024-07-06 04:26:44 -04:00
Luke Parker
0631607b8f Tidy inlined epee code in the RPC 2024-07-06 04:21:06 -04:00
Luke Parker
d847ec5efb Reject torsioned spend keys to ensure we can spend the outputs we scan 2024-07-06 03:48:45 -04:00
Luke Parker
b2c962cd3e Fix remaining bugs in monero-wallet tests 2024-07-06 03:24:38 -04:00
Luke Parker
788c4fc0a7 Fix a pair of bugs in the decoy tests
Unfortunately, this test is still failing.
2024-07-06 01:58:51 -04:00
Luke Parker
04df229df1 Have Monero test runner evaluate an Eventuality for all signed TXs 2024-07-06 01:58:41 -04:00
Luke Parker
1f5e5fc7ac Correct misc TODOs in monero-serai 2024-07-05 23:30:02 -04:00
Luke Parker
90880cc9c8 fmt, machete, GH CI 2024-07-05 13:55:15 -04:00
Luke Parker
e94a04d47c Restore the reserialize chain binary 2024-07-04 03:17:35 -04:00
Luke Parker
0f9a5afa07 Remove possible panic in monero-serai on systems < 32 bits
This was done by requiring the system's usize can represent a certain number.
2024-07-04 02:27:16 -04:00
Luke Parker
3de89c717d Correct imports for no-std 2024-07-04 02:18:38 -04:00
Luke Parker
08169e29bb Finish documenting monero-serai 2024-07-04 02:18:37 -04:00
Luke Parker
b56c6fb39e Remove non-small-order view key bound
Guaranteed addresses are in fact guaranteed even with this due to prefixing key
images causing zeroing the ECDH to not zero the shared key.
2024-07-04 02:18:37 -04:00
Luke Parker
daa0f8f7d5 Diversify ViewPair/Scanner into ViewPair/GuaranteedViewPair and Scanner/GuaranteedScanner
Also cleans the Scanner impl.
2024-07-04 02:18:37 -04:00
Luke Parker
64e74c52ec Represent height/block number as a u32 2024-07-04 02:18:37 -04:00
Luke Parker
06246618ab Sync rest of repo with monero-serai changes 2024-07-04 02:18:37 -04:00
Luke Parker
69e077bf7a Clean and document monero-address 2024-07-04 02:18:37 -04:00
Luke Parker
8319d219d7 Update monero-wallet tests to compile
Some are _consistently_ failing due to the inputs we attempt to spend being too
young. I'm unsure what's up with that. Most seem to pass _consistently_,
implying it's not a random issue yet some configuration/env aspect.
2024-07-04 02:18:37 -04:00
Luke Parker
891362a710 Correct invalid RPC type def in monero-rpc 2024-07-04 02:18:37 -04:00
Luke Parker
08d604fcb3 Restore Monero multisig TX code 2024-07-04 02:18:37 -04:00
Luke Parker
abd48e9206 Add SignableTransaction Read/Write 2024-07-04 02:18:37 -04:00
Luke Parker
70c36ed06c Rewrite monero-wallet's send code
I have yet to redo the multisig code and the builder. This should be much
cleaner, albeit slower due to redoing work.

This compiles with clippy --all-features. I have to finish the multisig/builder
for --all-targets to work (and start updating the rest of Serai).
2024-07-04 02:18:37 -04:00
Luke Parker
b3b0edb82f Fix deserializing v2 miner transactions 2024-07-04 02:18:37 -04:00
Luke Parker
0f477537a0 Document cargo features
Credit to @hinto-janai for adding such sections to their work on documenting
monero-serai in #568.
2024-07-04 02:18:37 -04:00
Luke Parker
eb0c19bfff Smash out Monero addresses 2024-07-04 02:18:37 -04:00
Luke Parker
0b20004ba1 Get the repo to compile again 2024-07-04 02:18:37 -04:00
Luke Parker
11dba9173f Smash out seed 2024-07-04 02:18:37 -04:00
Luke Parker
1e2e3bd5ce Smash out polyseed 2024-07-04 02:18:37 -04:00
Luke Parker
df095f027f Only read transactions with one Input::Gen or all Input::ToKey
Also adds a helper to fetch a transaction's prefix.
2024-07-04 02:18:37 -04:00
Luke Parker
6fc8b30df2 Remove TODO on reading pseudo_outs for AggregateMlsagBorromean 2024-07-04 02:18:37 -04:00
Luke Parker
74aaac46ef Finish documenting monero-serai 2024-07-04 02:18:37 -04:00
Luke Parker
1db40914eb Incomplete work on using Option to remove panic cases 2024-07-04 02:18:37 -04:00
Luke Parker
b5b9d4a871 Move Protocol to monero-wallet 2024-07-04 02:18:37 -04:00
Luke Parker
6f61861d4b Improve docs a bit 2024-07-04 02:18:37 -04:00
Luke Parker
08b95abdd8 Document the RPC 2024-07-04 02:18:37 -04:00
Luke Parker
d740bd2924 Smash out RPC, wallet 2024-07-04 02:18:37 -04:00
Luke Parker
3a1c6c7247 Tidy up monero-serai as a meta crate 2024-07-04 02:18:37 -04:00
Luke Parker
3e82ee60b3 Smash out Borromean 2024-07-04 02:18:37 -04:00