Skip to content

Commit 8fd6af0

Browse files
committed
[Trivial][RPC] Drop 'ed' suffix from Shielded in TxSaplingToJSON
1 parent 7a25694 commit 8fd6af0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/sapling/sapling_core_write.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ void TxSaplingToJSON(const CTransaction& tx, UniValue& entry) {
4646
entry.pushKV("valueBalance", FormatMoney(tx.sapData->valueBalance));
4747
entry.pushKV("valueBalanceSat", tx.sapData->valueBalance);
4848
UniValue vspenddesc = TxShieldedSpendsToJSON(tx);
49-
entry.pushKV("vShieldedSpend", vspenddesc);
49+
entry.pushKV("vShieldSpend", vspenddesc);
5050
UniValue voutputdesc = TxShieldedOutputsToJSON(tx);
51-
entry.pushKV("vShieldedOutput", voutputdesc);
51+
entry.pushKV("vShieldOutput", voutputdesc);
5252
if (tx.sapData->hasBindingSig()) {
5353
entry.pushKV("bindingSig", HexStr(tx.sapData->bindingSig.begin(), tx.sapData->bindingSig.end()));
5454
}

test/functional/sapling_mempool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_test(self):
9494
# Now disconnect the block with the note's anchor,
9595
# and check that the tx is removed from the mempool
9696
self.log.info("Disconnect the last block to change the sapling anchor")
97-
anchor = txC_json['vShieldedSpend'][0]['anchor']
97+
anchor = txC_json['vShieldSpend'][0]['anchor']
9898
assert_equal(anchor, miner.getbestsaplinganchor())
9999
miner.invalidateblock(miner.getbestblockhash())
100100
assert (anchor != miner.getbestsaplinganchor())

test/functional/sapling_wallet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,17 @@ def run_test(self):
238238
# Verify existence of Sapling related JSON fields
239239
resp = self.nodes[0].getrawtransaction(mytxid7, 1)
240240
assert_equal(Decimal(resp['valueBalance']), Decimal('11.00')) # 20 shield input - 8 shield spend - 1 change
241-
assert_equal(len(resp['vShieldedSpend']), 3)
242-
assert_equal(len(resp['vShieldedOutput']), 2)
241+
assert_equal(len(resp['vShieldSpend']), 3)
242+
assert_equal(len(resp['vShieldOutput']), 2)
243243
assert('bindingSig' in resp)
244-
shieldedSpend = resp['vShieldedSpend'][0]
244+
shieldedSpend = resp['vShieldSpend'][0]
245245
assert('cv' in shieldedSpend)
246246
assert('anchor' in shieldedSpend)
247247
assert('nullifier' in shieldedSpend)
248248
assert('rk' in shieldedSpend)
249249
assert('proof' in shieldedSpend)
250250
assert('spendAuthSig' in shieldedSpend)
251-
shieldedOutput = resp['vShieldedOutput'][0]
251+
shieldedOutput = resp['vShieldOutput'][0]
252252
assert('cv' in shieldedOutput)
253253
assert('cmu' in shieldedOutput)
254254
assert('ephemeralKey' in shieldedOutput)

test/functional/sapling_wallet_listreceived.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run_test(self):
136136

137137
# Verify the spent nullifier
138138
tx_json = self.nodes[1].getrawtransaction(txid, True)
139-
assert_equal(nullifier, tx_json["vShieldedSpend"][0]["nullifier"])
139+
assert_equal(nullifier, tx_json["vShieldSpend"][0]["nullifier"])
140140

141141
# Decrypted transaction details should be correct
142142
pt = self.nodes[1].viewshieldtransaction(txid)

0 commit comments

Comments
 (0)