Commit graph

32 commits

Author SHA1 Message Date
Jason Rhinelander 33b362db96 Spruce up block display; DRY tx fetching code
- Make block metadata use the same style as other new pages
- Abstract tx fetching code
- make /block/latest redirect to top height
- Add "Show raw details" for blocks
- Make searching by block height properly redirect
2020-09-29 01:36:13 -03:00
Jeff a7cf7f8769 gracefully fail on /search endpoint with no query 2020-09-26 15:07:59 -04:00
Jeff feb491cdda make sure show_blocks doesn't refernces no blocks and if it does make it not crash 2020-09-26 15:07:35 -04:00
Jeff 4c4465a6c1 initial try of block page 2020-09-26 14:35:02 -04:00
Jason Rhinelander ae39cccb8b Misc. fixes 2020-09-15 18:41:45 -03:00
Jason Rhinelander b78b8740cd Don't show miner blocks as having 1 input
It's a generated output, the "vin" element is just a filler rather than
an actual input.
2020-09-11 17:43:17 -03:00
Jason Rhinelander 684c600803 Fix exception when no SNs 2020-09-11 17:43:00 -03:00
Jason Rhinelander 300a985657 Misc. fixes 2020-09-03 00:26:38 -03:00
Jason Rhinelander 4a157d980f More efficient key_indices calculation + delete key_offsets
Once we have key_indices we don't need key_offsets anymore so get rid of
it.
2020-09-01 10:52:50 -03:00
Jason Rhinelander 4f44a0c3b9 Fix key offsets being offsets, not indices 2020-09-01 02:22:19 -03:00
Jason Rhinelander db985fbefa Add separate wrappers for mainnet/testnet/devnet 2020-09-01 01:44:53 -03:00
Jason Rhinelander f8635ee301 Add checkpoints to main index 2020-09-01 01:44:30 -03:00
Jason Rhinelander 932f2c402b Various tweaks/fixes 2020-09-01 01:44:06 -03:00
Jason Rhinelander 0bce9ab758 Implement search
This works and displays a little differently than before:

- Only one search box for block/tx/SN instead of one for block/tx and
  one for SN
- Put the search box at the top right when the page is wide enough.
- When a search result is found we redirect to its proper URL rather
  than displaying on the search URL
2020-08-31 16:56:21 -03:00
Jason Rhinelander 81d9dfdef7 Add service node details page 2020-08-31 13:51:28 -03:00
Jason Rhinelander 752f19784b Add cache subkey; allow non-caching requests
The cache key allows having multiple caches that use the same endpoint
(for instance, rpc.get_service_nodes for all-SNs versus single SN).

Non-caching requests still use a cached value if present, but don't
store it in the cache if they have to make an actual request.
2020-08-31 13:05:17 -03:00
Jason Rhinelander bdf9056c2a Add tx details page
Plus various improvements around how small metadata is displayed.
2020-08-30 13:32:17 -03:00
Jason Rhinelander 2c394386e3 Add tx symbol & add missing fee to mempool tx list 2020-08-19 23:09:21 -03:00
Jason Rhinelander d89177204f Add uwsgi-emperor vassal config 2020-08-19 19:43:59 -03:00
Jason Rhinelander 6021291a89 Add missing styles
My initial copy was from a very old block explorer checkout and missed
some of the current css.
2020-08-19 19:42:28 -03:00
Jason Rhinelander 88e929d767 Add /service_nodes
Plus:
- change `disp_inactive` etc. to `limit_inactive` etc.
- show "Not Received" for 0 timestamp last uptime proof
2020-08-19 19:41:22 -03:00
Jason Rhinelander fa9a17092c Move lmq connection & FutureJSON into lmq.py
Also delays creating the lmq instance until get_connection() is called,
which seems pretty much required if using multiple threads/processes as
we need each process to have its own connection.
2020-08-19 18:54:53 -03:00
Jason Rhinelander a14d33fc6d Update pylokimq for crash fix 2020-08-19 18:54:53 -03:00
Jason Rhinelander b4b6b6c8ec Rename "app.py" to "observer.py" 2020-08-19 18:54:53 -03:00
Jason Rhinelander c0a464bba8 Only set debug stuff if running as main 2020-08-19 18:54:53 -03:00
Jason Rhinelander 49daf35a16 Move config to separate file 2020-08-19 18:54:53 -03:00
Jason Rhinelander 09d19459e1 Add a note about needing a new Jinja 2020-08-19 12:39:38 -03:00
Jason Rhinelander 614986de79 Add service node info on index 2020-08-18 13:42:24 -03:00
Jason Rhinelander 47a23f543e Update pylokimq & increase request size
SN info is huge, the 1MB default really isn't enough.
2020-08-18 12:19:49 -03:00
Jason Rhinelander 71c36169bc Add babel to requirements 2020-08-17 23:28:16 -03:00
Jason Rhinelander 0bee29b5ca Add primitive readme 2020-08-17 22:39:32 -03:00
Jason Rhinelander 4b27018965 Initial commit
Basic working prototype of most of the first pages (templates brought in
from the old explorer but updated for jinja).
2020-08-17 22:17:06 -03:00