Comments (3)
The confirmations is a derived value from localChainTip.height-tx.height
I believe we may be doing that in insight.
from bitcore-node.
Yeah that's true, but I think it would be faster and more convenient if the tx
API endpoint returns the confirmations.
If the API user needs to derive the confirmations, the user will need to make two API calls per transaction (one to get the current chain tip, and another to get the tx.height
) to calculate the confirmations, instead of only one if the API provides it.
All the node has to do is to locally compute the confirmations when a transaction is requested by the API (or multiple transactions.) Hence, not increasing the storage, but slightly impacting the response time (not by a lot compared to the user making two API calls to compute the same value).
from bitcore-node.
Fixed, check bitpay/bitcore#1692
from bitcore-node.
Related Issues (20)
- Cannot install bitcore-node npm in CentOS server HOT 1
- Node 8 Sync Won't Continue after Stopping HOT 2
- Node 8 doesn't show transactions in mempool (unconfirmed) HOT 2
- Cannot Upgrade from 0.1 to 5.0
- Link on "Creating a Service" Broken
- i can't start insight-api service HOT 1
- n.config
- Not able to send raw transaction
- Official bitcoind using and insight integration HOT 1
- Couldn't setup insight working for Bitcore 8
- InsightAPI -- SSL/https HOT 2
- Bitcore Sync is Extremely Slow (Several days block 310,000) on 8GB Dual Core Ubuntu HOT 2
- Can I prune blockchain after bitcore v8 sync?
- unable to update bitpay wallet
- Error when trying to start bitcore-node: DB service
- https://github.com/bitcoin-core/gui
- Error while install bitcore-node
- Issues installing bitcore-node
- Add bitcoin as a topic to this repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcore-node.