Comments (10)
Good idea. I will look into it. I already have code for estimation of block height from a date, so maybe can use this. Could also add the stamp to the custom lmdb database, for super fast and exact search of block.
from onion-monero-blockchain-explorer.
Just marged it to master.
#11
The supported datetime format is 2016-11-13 08:51:43 . If the block with exact timestamp does not exist, the first boock with higher timestamp is returned.
For this to work, the custom lmdb database must be up to date, as the timestamps are taken from it. In Monero blockchain, you cant search blocks based on timestamps.
Also UTC timezone were fixed, so now the dates and times shown are UTC, unlike before. Hinnant library requires curl, so you mean need to install it, sudo apt install libcurl4-openssl-dev first.
from onion-monero-blockchain-explorer.
2016-11-13 08:51:43
i'll probably find out once I compile and test it, but can you input substrings of the above?
e.g., 2016-11-13 08:51:43 would get a specific block, but
2016-11-13 08:51 would return any block found in that minute
and 2016-11-13 08 would return any block found in that hour, or blocks found starting at that hour.
2016-11-13 would return blocks found starting that day
etc etc
from onion-monero-blockchain-explorer.
For this to work, the custom lmdb database must be up to date, as the timestamps are taken from it. In Monero blockchain, you cant search blocks based on timestamps.
OOOOH im an idiot. By up to date, you mean recompile. Not simply that the database on the server is currently up to date with the blockchain.
from onion-monero-blockchain-explorer.
Nope, just having current blocks. No need to recompile or recreate it.
Yes, was thinking about the "no-full" timestamps. Its duable, but need time to implement that.
from onion-monero-blockchain-explorer.
hrm... though there are a lot of changes to lmdb-cpp since I compiled last apparently
from onion-monero-blockchain-explorer.
The datetime search has been extended and its ready for testing.
2015-04-15 12:02:33
searches for block of this timestamp or first next one.2015-04-15 12:02
searches for all txs made in the given minute2015-04-15 12
searches for all txs made in the given hour2015-04-15
searches all txs made in that day (only up to 500 txs are displayed though).
SInce the custom lmdb database is used for the searches (its not possible to search for this efficiently in monero blockchain), lmdb must be running and keeping its records up to date with blockchain.
from onion-monero-blockchain-explorer.
sweeeeeet.
from onion-monero-blockchain-explorer.
No problem. Let me know if there are some problems with it or something else is required.
from onion-monero-blockchain-explorer.
If there are no further question or issues, I will close this issue. Please feel free to re-open if needed.
from onion-monero-blockchain-explorer.
Related Issues (20)
- Feature Request: Add K-Anonymity to Block and Tx Requests HOT 5
- xmr HOT 1
- Decrypt payment id with API HOT 1
- Request: `stagenet.xmrchain.net` JSON API HOT 2
- Links to the api are returning 404 Not Found HOT 3
- "Cant get per kb dynamic fee esimate" error in networkinfo endpoint HOT 4
- Reopen PR: Enable Github Actions build of Docker image HOT 1
- Include unlock_time in transactions, transaction and outputs endpoints HOT 1
- Transaction with an unlock_time has 0 as tx_confirmations and tx_timestamp in the outputs endpoint HOT 3
- Given path ""/home/monero/.bitmonero/lmdb"" is not a folder or does not exist HOT 5
- devel branch not building HOT 2
- Failing building docker container on Apple M1 Max HOT 4
- [Feature Request] Forward lookup for stealth addresses to show how many times an output was spent HOT 2
- Wrong tx_hash above block 1220517 HOT 3
- [Bug] broken pruned tx hash HOT 1
- [Discussion] docker compose: delay explore container
- Running xmrblocks in ghcr.io/moneroexamples/xmrblocks:release-v0.18 results in "Illegal instruction" error HOT 1
- [Bug] Requesting alt block triggers HTTP 500 Internal Server Error HOT 14
- Build is broken by Monero update HOT 3
- master: error compiling HOT 3
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 onion-monero-blockchain-explorer.