mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-05 01:36:38 +00:00
feat: support Concise Transaction Identifier (CTID) (XLS-37) (#4418)
* add CTIM to tx rpc --------- Co-authored-by: Rome Reginelli <mduo13@gmail.com> Co-authored-by: Elliot Lee <github.public@intelliot.com> Co-authored-by: Denis Angell <dangell@transia.co>
This commit is contained in:
@@ -68,14 +68,9 @@ public:
|
||||
jv[jss::Destination] = alice.human();
|
||||
jv[jss::TransactionType] = "Payment";
|
||||
jv[jss::Amount] = "10000000000";
|
||||
if (env.app().config().NETWORK_ID > 1024)
|
||||
jv[jss::NetworkID] =
|
||||
std::to_string(env.app().config().NETWORK_ID);
|
||||
|
||||
env(jv, fee(1000), sig(env.master));
|
||||
}
|
||||
|
||||
// run tx
|
||||
env(jv, fee(1000), ter(expectedOutcome));
|
||||
env.close();
|
||||
};
|
||||
@@ -127,7 +122,6 @@ public:
|
||||
{
|
||||
test::jtx::Env env{*this, makeNetworkConfig(1025)};
|
||||
BEAST_EXPECT(env.app().config().NETWORK_ID == 1025);
|
||||
|
||||
// try to submit a txn without network id, this should not work
|
||||
{
|
||||
env.fund(XRP(200), alice);
|
||||
|
||||
Reference in New Issue
Block a user