Use nullifiers instead of address for unique IDs
This commit is contained in:
parent
334c4b1ea0
commit
a62ebeaca4
|
@ -55,6 +55,8 @@ export class Transaction {
|
||||||
|
|
||||||
amount: number;
|
amount: number;
|
||||||
|
|
||||||
|
position: string;
|
||||||
|
|
||||||
confirmations: number;
|
confirmations: number;
|
||||||
|
|
||||||
txid: string;
|
txid: string;
|
||||||
|
|
|
@ -301,7 +301,7 @@ export default class Transactions extends Component<Props, State> {
|
||||||
)}
|
)}
|
||||||
{transactions &&
|
{transactions &&
|
||||||
transactions.slice(0, numTxnsToShow).map(t => {
|
transactions.slice(0, numTxnsToShow).map(t => {
|
||||||
const key = t.type + t.txid + t.address;
|
const key = t.type + t.txid + (t.position || '');
|
||||||
return (
|
return (
|
||||||
<TxItemBlock
|
<TxItemBlock
|
||||||
key={key}
|
key={key}
|
||||||
|
|
|
@ -128,7 +128,7 @@ export default class RPC {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special method to get the Info object. This is used both internally and by the Loading screen
|
// Special method to get the Info object. This is used both internally and by the Loading screen
|
||||||
static getInfoObject() {
|
static getInfoObject(): Info {
|
||||||
const infostr = native.litelib_execute('info', '');
|
const infostr = native.litelib_execute('info', '');
|
||||||
try {
|
try {
|
||||||
const infoJSON = JSON.parse(infostr);
|
const infoJSON = JSON.parse(infostr);
|
||||||
|
@ -271,6 +271,8 @@ export default class RPC {
|
||||||
transaction.confirmations = tx.unconfirmed ? 0 : latestBlockHeight - tx.block_height + 1;
|
transaction.confirmations = tx.unconfirmed ? 0 : latestBlockHeight - tx.block_height + 1;
|
||||||
transaction.txid = tx.txid;
|
transaction.txid = tx.txid;
|
||||||
transaction.time = tx.datetime;
|
transaction.time = tx.datetime;
|
||||||
|
transaction.position = tx.position;
|
||||||
|
|
||||||
if (tx.outgoing_metadata) {
|
if (tx.outgoing_metadata) {
|
||||||
transaction.detailedTxns = tx.outgoing_metadata.map(o => {
|
transaction.detailedTxns = tx.outgoing_metadata.map(o => {
|
||||||
const detail = new TxDetail();
|
const detail = new TxDetail();
|
||||||
|
|
|
@ -2496,7 +2496,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zecwalletlitelib"
|
name = "zecwalletlitelib"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/adityapk00/zecwallet-light-cli?rev=9631b643b185940197594994aa210dd39fec0dd3#9631b643b185940197594994aa210dd39fec0dd3"
|
source = "git+https://github.com/adityapk00/zecwallet-light-cli?rev=d0e7a5f635f7eb8f7c9ccd53d66680f2d5b00635#d0e7a5f635f7eb8f7c9ccd53d66680f2d5b00635"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"bellman 0.1.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)",
|
"bellman 0.1.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)",
|
||||||
|
@ -2542,7 +2542,7 @@ dependencies = [
|
||||||
"neon-build 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"neon-build 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"neon-serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"neon-serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
|
"serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"zecwalletlitelib 0.1.0 (git+https://github.com/adityapk00/zecwallet-light-cli?rev=9631b643b185940197594994aa210dd39fec0dd3)",
|
"zecwalletlitelib 0.1.0 (git+https://github.com/adityapk00/zecwallet-light-cli?rev=d0e7a5f635f7eb8f7c9ccd53d66680f2d5b00635)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
|
@ -2833,4 +2833,4 @@ dependencies = [
|
||||||
"checksum zcash_client_backend 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
"checksum zcash_client_backend 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
||||||
"checksum zcash_primitives 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
"checksum zcash_primitives 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
||||||
"checksum zcash_proofs 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
"checksum zcash_proofs 0.0.0 (git+https://github.com/adityapk00/librustzcash.git?rev=98f9bda32957a6d7f0011c9a6adec13b5b80ea94)" = "<none>"
|
||||||
"checksum zecwalletlitelib 0.1.0 (git+https://github.com/adityapk00/zecwallet-light-cli?rev=9631b643b185940197594994aa210dd39fec0dd3)" = "<none>"
|
"checksum zecwalletlitelib 0.1.0 (git+https://github.com/adityapk00/zecwallet-light-cli?rev=d0e7a5f635f7eb8f7c9ccd53d66680f2d5b00635)" = "<none>"
|
||||||
|
|
|
@ -14,7 +14,7 @@ crate-type = ["cdylib"]
|
||||||
neon-build = "0.3.3"
|
neon-build = "0.3.3"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
zecwalletlitelib = { git = "https://github.com/adityapk00/zecwallet-light-cli", rev = "99c81bc13097341e4dc8b537ce1598a45e98ba11" }
|
zecwalletlitelib = { git = "https://github.com/adityapk00/zecwallet-light-cli", rev = "d0e7a5f635f7eb8f7c9ccd53d66680f2d5b00635" }
|
||||||
neon = "0.3.3"
|
neon = "0.3.3"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
neon-serde = "0.2.0"
|
neon-serde = "0.2.0"
|
||||||
|
|
Loading…
Reference in New Issue