Bitcoin Forum
July 04, 2024, 10:12:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightweight LN node (c-lightning + Spruned) Problems  (Read 172 times)
vv181 (OP)
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
April 28, 2019, 06:39:54 PM
Last edit: April 29, 2019, 06:58:55 AM by vv181
Merited by bones261 (2), nc50lc (1), Husna QA (1)
 #1

I'm trying to follow this tutorial (https://bitcoin.stackexchange.com/questions/76849/c-lightning-lightweight-nodes-no-local-bitcoind) to set up an LN on my PC.

I could get the Spruned working, testing it on bitcoin-cli, and it works.
Code:
[➜  ~ bitcoin-cli getblockchaininfo
{
  "chain": "main",
  "warning": "spruned 0.0.8, emulating bitcoind v0.16",
  "blocks": 573648,
  "headers": 573648,
  "bestblockhash": "0000000000000000001364fc133de480d234b9ad7237581187f00792dae4f213",
  "difficulty": 0,
  "chainwork": "0000000000000000000000000000000000000000000000000000000000000000",
  "mediantime": 1556475871,
  "verificationprogress": 100,
  "pruned": false
}

However when i run
Code:
lightningd --log-level=debug --network=bitcoin \
           --bitcoin-rpcuser=rpcuser \
           --bitcoin-rpcpassword=rpcpassword
the lightnind exiting, and returns
Code:
bitcoin-cli -rpcuser=... -rpcpassword=... getblock 00000000000000000011f07bf95e39d064c016556e5aa8519efc8d5d42b0a299 false: bad block '(000080200d9d6b297fe99da8847e7586cfe39aad5f6275de1cd11a000000000000000000f82409279d4a6d05018ae69c85171d6e68b50ae59d0207987a5823bfde150ca992d2c55c114e2c177555aa18010000.......)'
lightningd log: https://ghostbin.com/paste/ervw9

I know there is a probably something wrong in the hash/block verification, that makes it returns 'false: bad block:'. But, I already make sure that both spruned and lightnin c conf is running on the mainnet.


EDIT: Closed since I got the workaround.

I just simply delete the spruned data folder and resync it again.
nc50lc
Legendary
*
Offline Offline

Activity: 2464
Merit: 5764


Self-proclaimed Genius


View Profile
April 29, 2019, 02:29:32 AM
 #2

EDIT: Closed since I got the workaround.

I just simply delete the spruned data folder and resync it again.
Then consider to lock the thread and/or edit the title and add "[SOLVED]" at the beginning  Wink

This might come in handy if someone got the same issue.
It will show in google search anyways.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!