77 Commits

Author SHA1 Message Date
tomFlowee 30a11a48a6 Implement block subscription
This means that when the node registers a new block has appeared, we'll
instantly download it and check for bcmr data.

This allows the tool to keep running until the moment a block with the
wanted signature is detected.
2026-03-26 10:30:55 +01:00
tomFlowee 44c137d9be Add autoExit flag to fetcher. 2026-03-25 22:11:01 +01:00
tomFlowee 4ac59380fa Detect invalid dates
The BCMR has as the key the date, and we sort the "sources": list
based on that date.
But if the bcmr didn't properly format the date, the missorted
the item.

We now detect this and fall back to block height based sorting.
2026-03-05 23:01:57 +01:00
tomFlowee 61fbbe361d Allow fallback to 'asset' if 'image' url is missing. 2026-03-05 20:57:17 +01:00
tomFlowee 29b9435a3c Convert ft_minted from double to string 2026-03-05 17:13:07 +01:00
tomFlowee edddfd7d32 Add another -w 2026-03-05 10:27:59 +01:00
tomFlowee 41bb3e5201 Remove premature optimization. 2026-02-07 18:45:56 +01:00
tomFlowee 0b2763bff5 Fix usecase where multiple outputs have a token
Make sure that we generate the 'genesis {}' json section properly.
2026-02-07 18:45:41 +01:00
tomFlowee 90863929c2 Rename variable 2026-02-03 16:44:57 +01:00
tomFlowee 91c164ef24 fix typo 2026-02-03 16:15:44 +01:00
tomFlowee aa4726f6c5 Simple fixlets. 2026-02-03 16:15:44 +01:00
tomFlowee 95c23c6a45 Add 'genesis' part to the meta json. 2026-02-03 16:15:44 +01:00
tomFlowee 517cc98349 Add total run bash 2026-02-03 16:15:44 +01:00
tomFlowee a52b326555 Fix linter issues 2025-11-05 12:09:48 +01:00
tomFlowee 88a186d504 Be consistent in naming and refer to the right dir. 2025-06-30 19:32:05 +02:00
tomFlowee 570506a1b2 Add simple tutorial 2025-06-30 19:31:48 +02:00
tomFlowee 331c603a6f Fix arg name 2025-06-05 20:01:24 +02:00
tomFlowee effc88dbdb Format the html FT number 2025-05-15 22:34:45 +02:00
tomFlowee ce57fd9e1b Fixes in fetching the extra transactions 2025-05-15 17:20:33 +02:00
tomFlowee 8f1b53dc07 Add writing of info files for downloaded txs 2025-05-15 13:44:54 +02:00
tomFlowee 2b540a8465 Skip empty chain 2025-05-15 12:54:05 +02:00
tomFlowee 844f85f149 Abuse 'alt' when the icon isn't present. 2025-05-11 20:52:23 +02:00
tomFlowee 8634507958 Add more div classes. 2025-05-11 20:30:59 +02:00
tomFlowee 17544cd3af Make description easier to use. 2025-05-11 20:25:18 +02:00
tomFlowee 9440aec41b html fixes 2025-05-11 19:52:25 +02:00
tomFlowee 45cedb783f Add the cashtoken details to html
When a genesis transaction is found, add details.
2025-05-11 19:24:01 +02:00
tomFlowee 680a8eb05a Add html generation
This generates a html file for each 'group', most of which are
going to be auth-heads.
2025-05-11 17:54:28 +02:00
tomFlowee 60ede073c0 Add personal upload script 2025-04-15 14:58:42 +02:00
tomFlowee 084ccccc33 Add the new app that helps strengthen trust in bcmrs
A BCMR issued through a transaction on the auth-chain is more powerful
if the json links back to that authchain (by base id: authbase).

As such it helps if we have then entire chain of transactions that make
up the authbase downloaded when the processor tries to determine trust.
2025-04-15 14:42:22 +02:00
tomFlowee 24f1c6cc0f Various projects
* move some code to Utils
* add option on downloadjob to mark the error on a different path
* make downloading that fails store the error in the in dir instead of
the output dir since the latter goes to the webserver.
* Add a new app to download missing transactions that make up the
authchain.
* Make the Fetcher create an ini file for each transaction with the
block timestamp it came from.
* Make the processor sorting use the block it was announced in as a tie-
breaker when the author of the json stupidly used the exact same data
for multiple revisions.
* bugfixes.
2025-04-15 00:14:20 +02:00
tomFlowee f8ad541baa Make progress lines show up in default log 2025-04-13 23:35:31 +02:00
tomFlowee d989c65c4b Ensure the dir exists for error reporting 2025-04-13 23:35:04 +02:00
tomFlowee e37eae3975 remove unneeded code 2025-04-13 23:34:55 +02:00
tomFlowee 57082fc9f0 Oh, Qt's link was a softlink. Make it a hardlink
Softlinks are hard to setup, as you need a relative path from one to the
other. Its messy..

So, make use of hard links instead and since the Qt APIs don't support
that, just call the standard library (libc) support for this. (still
posix 2008, in case you wonder).
2025-04-13 22:20:15 +02:00
tomFlowee 5a4ae3f315 cleanup 2025-04-13 19:29:21 +02:00
tomFlowee db9a635a6a Add auto-generated homepage 2025-04-13 17:50:19 +02:00
tomFlowee ce3ff5dfb6 Detect misuse of 'icon' instead of 'image'
Assume an NFT that only lists an icon and not an image url that this is
actually an image, not an icon.
2025-04-13 16:46:17 +02:00
tomFlowee 2cc50fec1e Attempt to set the tx filedate to the block time. 2025-04-13 16:23:30 +02:00
tomFlowee 6bfe665b03 Link instead of copy 2025-04-13 15:29:18 +02:00
tomFlowee 77e656c608 Avoid repeatedly failing a download.
It would try to download again on a next iteration unless we create the
file. So create it with the error code and it is short enough for the
main process to ignore the file.
2025-04-13 15:04:00 +02:00
tomFlowee 768287dd9e Add more checks for validness.
The registry and the authbase ids are now checked to be (lowercase)
hexadecimal strings.
There were various out there that put whitespace in there, one even
was an empty string!
2025-04-13 14:45:39 +02:00
tomFlowee 74f11ff039 When 404, don't try again. 2025-04-13 14:04:37 +02:00
tomFlowee 1f78601d80 Avoid downloading images by default
The trust file now has two more keys, cache-images and cache-icons.
The cache-images is default false.
2025-04-13 14:04:22 +02:00
tomFlowee 830ff572eb add logging output on the slow part. 2025-04-12 23:33:32 +02:00
tomFlowee c62b0e3540 Make slightly less noisy. 2025-04-12 20:58:39 +02:00
tomFlowee 517b452345 Replace outputscript parsing with dedicated class
Instead of parsing it manually, just use the class from Flowee Utils
that is easier to use.
2025-04-12 20:35:25 +02:00
tomFlowee 8aecc10840 Be more creative resolving the path
When we get a path in a transaction, try harder to figure out what
protocol they want us to use.
2025-04-12 19:34:36 +02:00
tomFlowee 8a9b26ebfb Don't try to download an invalid url 2025-04-12 19:21:45 +02:00
tomFlowee 948a18d6a2 Make sure a trailing slash is present. 2025-04-12 19:15:26 +02:00
tomFlowee 515c23a2fe Finish up Fetcher. 2025-04-12 19:06:00 +02:00