Open levoncrypto opened 5 months ago
The changes primarily focus on enhancing the functionality and validation of Spark transactions, including minting, sending, and spending Spark tokens. The updates introduce new parameters, improve transaction handling, and refine the logic for validating and processing transactions. Additionally, modifications in the UI components reflect these backend changes, ensuring seamless integration and user experience.
Files/Groups | Change Summaries |
---|---|
qa/rpc-tests/llmq-is-spark.py |
Added loop for multiple transactions, validation for transaction values, and instant lock checks. |
qa/rpc-tests/spark_mint.py |
Expanded minting amounts, updated address handling, and adjusted verification logic. |
qa/rpc-tests/spark_setmintstatus_validation.py |
Renamed variables and added new minting logic with additional address parameters. |
qa/rpc-tests/spark_spend_gettransaction.py |
Updated variable names and added logic for minting and spending Spark tokens. |
src/qt/sendcoinsdialog.cpp |
Modified conditions related to transaction preparation based on fAnonymousMode and sparkAddressCount . |
src/qt/sparkmodel.cpp |
Added include for wallet header and refactored MintAndStoreSpark function call. |
src/qt/walletmodel.cpp |
Added new vector for recipients and refactored address validation and data handling logic. |
src/qt/walletmodeltransaction.cpp |
Changed iteration from recipients to transaction outputs in reassignAmounts function. |
src/spark/sparkwallet.cpp |
Enhanced transaction amount handling and output adjustments in CreateSparkMintTransactions . |
src/spark/sparkwallet.h |
Added parameter to CreateSparkMintTransactions function. |
src/test/evospork_tests.cpp |
Modified MintAndStoreSpark function call to include vecSend parameter. |
src/test/fixtures.cpp |
Introduced new vector for recipients in GenerateMints method. |
src/wallet/rpcwallet.cpp |
Enhanced mintspark function to support various address types and parameters. |
src/wallet/test/spark_tests.cpp |
Updated MintAndStoreSpark calls in test cases to include vecSend parameter. |
src/wallet/wallet.cpp |
Added logic related to vecSend and subtractFeeFromAmount in MintAndStoreSpark and CreateSparkMintTransactions . |
src/wallet/wallet.h |
Updated CreateSparkMintTransactions and MintAndStoreSpark function signatures to include vecSend . |
In the realm of Spark, where tokens gleam,
We've added loops and checks supreme.
With minting magic, values soar,
Transactions flow like never before.
From wallets deep to tests so bright,
Our code now shines with Spark's new light.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This update enhances multi-sending capabilities. Previously, sending from a transparent address was limited to either another transparent address or a private address. Now, you can send Firo from a transparent address to a private and transparent address. Transaction fees will be evenly distributed across all transactions. When the fee is intended to be deducted from the sent amount, it will be deducted from the total transaction, not from any specific transaction. Sending Firo has now become more versatile and functional.