Closed 4ker-dep closed 10 months ago
Hi @4ker-dep! Your indexer could have been miss saving some blocks during the first step (usually occurs when the process is being interrupted). I'm in the process of testing this new branch, that includes a scan + auto-repair when the service is being started.
Hi @lgalabru ! Thanks for taking the notice of my issue. I assume work on fix/database-optims isn't finished since the PR is not merged yet but I was eager to run this version and check for results myself. Unfortunately my ordhook is failing with the logs visible below.
...
Normal tx: {"sequence":4294967295,"txid":"91a06c989d606b7cd160e7d5f3295682f92056bae9af8e48c710b4cc762da8ad","vout":24,"scriptSig":{"hex":""},"txinwitness":["304402207b60cce781c1d11a93b3dcab6b7d98703a6276046e24566e51eb3a08bed50f3b0220207d24a2974c16bf25733555ffdaebc5c6131941d9538e3e7b396de89b523fe001","021082a582b6ba356a1134c1e1a3b5efde99f698fad103b03a5ed2ab67db23a875"],"prevout":{"height":775086,"value":0.00369921}}
Normal tx: {"sequence":4294967295,"txid":"a2c59c4faf6a3e48e54222f9994aa80f03d78785612e95b7cd11488c0eaf2df3","vout":0,"scriptSig":{"hex":""},"txinwitness":["3044022077c66e459c1c30079515dec941a4b6b92994fa00c35a1ee752653e77ebf2790d02207785f861508ea753e71b8de7ed5f062798ae65e4c355fb12df6989ec2639540d01","028d616ae07b078357084eac9ff2b2b61b69b2aad4cf098427f2ed004ea48810e9"],"prevout":{"height":775086,"value":0.00402991}}
Normal tx: {"sequence":4294967295,"txid":"ea1b1a0753b5cbccc0937e8b9ca74864c7442a880904f7c586d73a1979019069","vout":0,"scriptSig":{"hex":"1600144b36be784d502693e067e747d8f0b5783d6e26ad"},"txinwitness":["304402202132901665df6a51d89cfc56ae86300626282f1caf4d191a04a865ad09d17fb802200729323d1cdd2d8ba4a3c2ec6901e210d29952d5bb8a6ed0293e290d240d0a6e01","03fa22e49023f3ef013006d1300c73c9d6e6673d09513c777437056de1eedaf109"],"prevout":{"height":775086,"value":0.00128711}}
Normal tx: {"sequence":4294967295,"txid":"aab9ee10c4f6cc2a8db9733c20c165db530d6e5db689c199802d0083f7de282f","vout":0,"scriptSig":{"hex":""},"txinwitness":["3044022061b651c5a004383bdf3d0cba7153a7685b07953412814bb3a395a3e4f0fb77d802205819031161b0aeb1c86da1a463fe605b852ae269a565c9e704371ff3fe302f6201","034fddde7afd30966b9a50b0696e3d44e52c718aca19605288f872da67113eb118"],"prevout":{"height":775086,"value":0.01389987}}
Normal tx: {"sequence":4294967295,"txid":"26e922300c31a0796b78ae4e86550ddebd52deb1ab47eb376ced3f640467b570","vout":0,"scriptSig":{"hex":""},"txinwitness":["3044022064f3db56fd10033718aa96d4c71c35bb48025d2ec5792f38f780c21696a2450a02207b6dcac9598d4a2e169528b9c56f79cc5cf027560bd037e3f3e439062e0b976901","028d590d17a3e757c482a6d11f59fe824342360e10d34fcb8c36c24d025526252f"],"prevout":{"height":775086,"value":0.00120735}}
Normal tx: {"sequence":4294967295,"txid":"10c7fe086aeac5dc7f98e3841e676dc81cc46c27bd70221dc23a0eb0d5dd98be","vout":3,"scriptSig":{"hex":""},"txinwitness":["304402207029d9b6561b7d43b464997fc2c669c5e0fed2d222f321a595405f8cc7cb34b802206188674ff2de917bc532fa1748a673b3169bd9cca7cc8b057c4cbcf7b71e17da01","027855b665dace9739dd8ad9a3031939c94dcea9626d5d5864cb4258b878893319"],"prevout":{"height":775086,"value":0.02499}}
Normal tx: {"sequence":4294967295,"txid":"f8addfb11b81a8fc039883d748f7d6224055d1dcd328e3322d8eb248677184fd","vout":28,"scriptSig":{"hex":""},"txinwitness":["","304402204d15de2904dfba9d70b1899fff92a15a3a353b018c66509da20e44d7f4ece2ab022072b0fed8b1a8dc3fed1b87e28560a34118fc114e012583efa2d561cb9394de8a01","304402202d39faddd4a52be72b111aab3d7ba90a6dce274d2e8b60edb44b1db32622dd7a0220398d585734abffc7403e402006b6dcf056973bab21a42edd5caef36fb001b37f01","522103eea443e3d0e5e50bf4ae3ae86b73e4492df673764048797bba31d55d22ece4d9210346143acfb8593064d1e9d2e29ace974c36b6ceb10ca636e2bd2bf417bb22376f52ae"],"prevout":{"height":775029,"value":0.00085415}}
Normal tx: {"sequence":4294967293,"txid":"2f7aa1f75833b4b0cd512c103cee664c54e5437d4285a7a44d6c06ca83342c02","vout":0,"scriptSig":{"hex":""},"txinwitness":["3044022063a51b6580def22a4778b0af1fffafe7f9483c97f2515a37880edd13a95f91ff02205c5e4597402fd5d790df6c60f054fadd44f855e2a60092cf79325fafc22250ae01","03c62b38281aab4f723f869c9c34083f241bfc0f4f0ea16ecde7db1d131447f7ba"],"prevout":{"height":775081,"value":0.29177402}}
Normal tx: {"sequence":4294967295,"txid":"2d55eac8af3308a02f4155fa793c3bd25c4f19aaf3618c9451d787a49184d84b","vout":0,"scriptSig":{"hex":""},"txinwitness":["9a789669e5d4e26cee2af70d0d071276a70993b4d44c4de11a875db7c2d4bc96f144394ff1f620f5e7b4f1883bffe274c7e78d053455eccdbe3f5151acbbb59001"],"prevout":{"height":775074,"value":0.00050332}}
Normal tx: {"sequence":4294967295,"txid":"e25b318f145ae6a6b9a2ec320ce7236782bedc497ca1f29b4d917bb8fd188528","vout":0,"scriptSig":{"hex":""},"txinwitness":["e4537394eef645b1d6e092e69654ad30f689918cc7e0c88e2a353dde568a832a3ce5b3698a612b45f8d8a793302ba15282c2fe1c3d902fcb298448b9624c876001"],"prevout":{"height":775074,"value":0.00049474}}
Normal tx: {"sequence":4294967295,"txid":"a246d57fa50a2630b5874b038d6d0b6b17aaf12e245cb04a75e12f109d1da1c4","vout":0,"scriptSig":{"hex":""},"txinwitness":["9cbcdd596f136113e853e8eddd2d1ea7840d48a49e5407584fe78abff7f9a3cc52e8ee803f034f5f55cb9c030669e3d5b799a27cd188f3c7e1fb593ed4cde5bd01"],"prevout":{"height":775074,"value":0.00006332}}
Normal tx: {"sequence":4294967295,"txid":"3ce7adcfbb85cd7597c0c27e5360053ca29acf56f25ad252eefbbaa963845b58","vout":0,"scriptSig":{"hex":""},"txinwitness":["7a19d7c70b01785081473dc63ac901b76f9f20b26fa17b521f5367dc2545ea8214299dc0028a8c49ca355f9632c85c8b36d3e721061a2e44ea269dbcae3f32ac01"],"prevout":{"height":774949,"value":8.58e-6}}
Normal tx: {"sequence":4294967295,"txid":"2330679c8c6c39cf638b22a4af631476a80950b54510c13bc4ed4beb41bd94e7","vout":0,"scriptSig":{"hex":""},"txinwitness":["fcdd49403654e5e79a591fc972eea997368b0b344cd2fa641213cc4a50a189aa3e42eaca3618310a59a8bc60e85030d80a3efc865bba70d2c3f872004f6839a801"],"prevout":{"height":775087,"value":0.00005317}}
Normal tx: {"sequence":2147483648,"txid":"7746547002c8c792fc46acab252707375d52e8db98429febe2eaf5004c70fd66","vout":0,"scriptSig":{"hex":""},"txinwitness":["3045022100a5ca9ad13c630bbd7e69292f8043e80a90bdc572f51049cb42237469534d9cb002201ec5d796a7355a2ee4c8e5870c479da072fbdac7763d3e47deb6aee1f9ce8a3301","028341332bd4ea53d37fce64f0b64eeba72a958d002a2379e27347b96b3df17ab4"],"prevout":{"height":775087,"value":0.00039322}}
Normal tx: {"sequence":2147483648,"txid":"5d8fe5fad25c8ff2c4f22fff80bcb164d45fbfb3febe6671c92189cac8d67abe","vout":1,"scriptSig":{"hex":""},"txinwitness":["304402206669b1f6e41e535f3ba98999956fa67d5e33fdae820d17eb32f81f141fee4fed02201eb85b073e918bdc9355c4a4b5686916092643966e440a9d5c4c6f00978978b801","0322177250812306558dce8482012523a01501f2fdcf457d6cc40008053a79d630"],"prevout":{"height":775083,"value":0.00219453}}
Dec 19 12:26:08.688 INFO Processing 2 blocks
Dec 19 12:26:08.690 INFO Inscriptions data computation for block #775087 started
Dec 19 12:26:08.696 INFO Number of inscriptions in block #775087 to process: 247 (L1 cache hits: 0, queue: [775088], L1 cache len: 0, L2 cache len: 0)
Dec 19 12:26:09.954 ERRO fatal: unable to retrieve tx ancestor 8a720f7d219f536b in block 775034 (satpoint 344a16e8735031dd692fd015ef7a12ecd5136680a4c75730c51f246dd2c1db6a:0)
@4ker-dep yeah this PR will require you to restart an index from scratch unfortunately. I was able to test this PR locally successfully, it's been deployed to a cloud environnement - I'd like to see it running for a few days first, before merging.
Hi! I'm running ordhook v1.2.0 in a k8s cluster on AWS. I've successfully passed the on-chain data scraping the from a Bitcoin daemon but currently I've getting the following error:
My current config is: