Skip to content

Commit

Permalink
Refactor transaction creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Nov 13, 2023
1 parent 92a3d42 commit dd93e7e
Show file tree
Hide file tree
Showing 27 changed files with 2,137 additions and 2,420 deletions.
9 changes: 0 additions & 9 deletions src/Makefile.elysiumtest.include
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ ELYSIUM_TEST_CPP = \
elysium/test/uint256_extensions_tests.cpp \
elysium/test/utils_tx.cpp

if ENABLE_WALLET
ELYSIUM_TEST_CPP += \
elysium/test/sigmawallet_tests.cpp \
elysium/test/sigmawalletv0_tests.cpp \
elysium/test/sigmawalletv1_tests.cpp \
elysium/test/wallet_tests.cpp \
elysium/test/walletmodels_tests.cpp
endif

BITCOIN_TESTS += \
$(ELYSIUM_TEST_CPP) \
$(ELYSIUM_TEST_H)
Expand Down
3 changes: 2 additions & 1 deletion src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ BITCOIN_TESTS += \
wallet/test/lelantus_tests.cpp \
wallet/test/sigma_tests.cpp \
wallet/test/mnemonic_tests.cpp \
wallet/test/txbuilder_tests.cpp
wallet/test/sigmatxbuilder_tests.cpp \
wallet/test/createtransaction_tests.cpp
endif

test_test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) -ltor
Expand Down
2 changes: 1 addition & 1 deletion src/elysium/elysium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,7 @@ int elysium::WalletTxBuilder(
switch (inputMode) {
case InputMode::NORMAL:
// Ask the wallet to create the transaction (note mining fee determined by Bitcoin Core params)
if (!pwalletMain->CreateTransaction(vecRecipients, wtxNew, reserveKey, nFeeRet, nChangePosInOut, strFailReason, &coinControl)) {
if (!pwalletMain->CreateTransaction(vecRecipients, wtxNew, &reserveKey, nFeeRet, nChangePosInOut, strFailReason, &coinControl)) {
PrintToLog("%s: ERROR: wallet transaction creation failed: %s\n", __func__, strFailReason);
return MP_ERR_CREATE_TX;
}
Expand Down
Loading

0 comments on commit dd93e7e

Please sign in to comment.