Skip to content

Commit

Permalink
To support multiple inputs in Lelantus spend tx in Elysium (#1109)
Browse files Browse the repository at this point in the history
Increase to support multiple inputs in Lelantus spend tx in Elysium layer, due to with 4k, it will support only one spend input, which impractical to support multiple spend input in a spend tx.

Test elysium_build_tx_tests/wallettxbuilder_create_normal_b is no longer needed because Class C transactions can hold all data Class B ones can.

Co-authored-by: Nopslide <poramininso.m@gmail.com>
  • Loading branch information
sproxet and nopslide authored Jan 10, 2022
1 parent 0da5f48 commit 02fff91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions src/elysium/test/build_tx_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,6 @@ namespace elysium {

BOOST_FIXTURE_TEST_SUITE(elysium_build_tx_tests, ZerocoinTestingSetup200)

BOOST_AUTO_TEST_CASE(wallettxbuilder_create_normal_b)
{
std::vector<unsigned char> data(nMaxDatacarrierBytes + 1);

std::string fromAddress = CBitcoinAddress(pubkey.GetID()).ToString();

uint256 txid;
std::string rawHex;
BOOST_CHECK_EQUAL(
0, // No error
elysium::WalletTxBuilder(fromAddress, "", "", 0, data, txid, rawHex, false)
);

CMutableTransaction decTx;
BOOST_CHECK(DecodeHexTx(decTx, rawHex));

BOOST_CHECK(!CTransaction(decTx).IsSigmaSpend());

BOOST_CHECK_EQUAL(
PacketClass::B,
DeterminePacketClass(decTx, chainActive.Height())
);
}

BOOST_AUTO_TEST_CASE(wallettxbuilder_create_normal_c)
{
std::vector<unsigned char> data(80);
Expand Down
2 changes: 1 addition & 1 deletion src/script/standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CScriptID : public uint160
CScriptID(const uint160& in) : uint160(in) {}
};

static const unsigned int MAX_OP_RETURN_RELAY = 4096;
static const unsigned int MAX_OP_RETURN_RELAY = 16384;
extern bool fAcceptDatacarrier;
extern unsigned nMaxDatacarrierBytes;

Expand Down

0 comments on commit 02fff91

Please sign in to comment.