question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use LightTransaction

See original GitHub issue

With https://github.com/iov-one/iov-core/pull/975 merged, we should do the following BlockchainConnection changes:

  • Create getTransaction: (id: TransactionId) => Promise<ConfirmedTransaction | FailedTransaction>;. This can later be used when clicking on transaction details from a transactions list. With the result of that, it should be possible to verify the signature locally.
  • Change interface to searchTx(query: TransactionQuery): Promise<ReadonlyArray<LightTransaction | FailedTransaction>>
  • Change interface to listenTx(query: TransactionQuery): Stream<LightTransaction | FailedTransaction>
  • Change interface to liveTx(query: TransactionQuery): Stream<LightTransaction | FailedTransaction>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
webmaster128commented, Jun 3, 2019

Definitely LightTransaction in these cases rather than ConfirmedTransaction<LightTransaction>?

Nope, my fault. ConfirmedTransaction<LightTransaction> is most likely the way to go. Feel free to do a plausibility check and error correction on the description above. It was more a sketch of the direction than a careful API design.

0reactions
webmaster128commented, Jun 3, 2019

watchSwaps

As a quick and dirty solution, I’d call getTransaction for every liveTx event. This can easily be done as long as we do not have long lists of atomic swaps. This way, we can postpone the question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Light Transaction Definition | Law Insider
Light Transaction means a change of control transaction consummated between the Company and L-3 Communications Holdings, whether by purchase of all or ...
Read more >
Using lightweight transactions | CQL for Cassandra 3.0
A common use for lightweight transactions is an insertion operation that must be unique, such as a cyclist's identification.
Read more >
Light transaction
The light transaction is a functionality that provides an optimum environment for the local transactions. As a result, an excellent local transaction ......
Read more >
What is the Lightning Network in Bitcoin and how does it work?
The Lightning Network is a second layer added to Bitcoin's (BTC) blockchain that allows off-chain transactions, i.e. transactions between parties not on the ......
Read more >
What are the implications of using lightweight transactions?
If lightweight transactions are used to write to a row within a partition, only lightweight transactions for both read and write operations ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found