Bitcoin Forum
October 17, 2018, 08:41:14 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 [7]  All
  Print  
Author Topic: [ANNOUNCE] picocoin and libccoin -- C-based bitcoin library and client  (Read 30248 times)
Aido
Sr. Member
****
Offline Offline

Activity: 249
Merit: 250


1. Collect underpants 2. ? 3. Profit


View Profile
September 30, 2016, 05:02:51 PM
 #121

Hi marcopal,

 Maybe this helps.......

Hi Jeff,

I'm trying to get my head around the brd.c code with a view to introducing LMDB to the picocoin project.

There's a few things I don't yet get. It seems that brd no longer stores blocks in brd.blkdb (it's commented out in code) but uses brd.blocks instead. But, there are still attempts to write to brd.blkdb, like calling blkdb_add(), which I think will always fail.

So, can the blkdb.c code be removed or does it just need a tidy-up?

blkdb is required and is always used.  It is the block header database.  It is kept in RAM, as bitcoind does.  It is optionally stored in a file, in addition to RAM.  It is optionally regenerated from the 17+GB blockchain file, if blkdb is missing

Actually, that reminds me. I never did have a go at adding LMDB to picocoin.

Interesting Bash command line, try it Wink:
bitcoin-cli sendtoaddress 1Aidan4r4rqoCBprfp2dVZeYosZ5ryVqH6 `bitcoin-cli getbalance`
1539765674
Hero Member
*
Offline Offline

Posts: 1539765674

View Profile Personal Message (Offline)

Ignore
1539765674
Reply with quote  #2

1539765674
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539765674
Hero Member
*
Offline Offline

Posts: 1539765674

View Profile Personal Message (Offline)

Ignore
1539765674
Reply with quote  #2

1539765674
Report to moderator
marcopal
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
October 01, 2016, 08:02:37 AM
 #122

thank you for the replay Aido,

I read that post but I thought it was related to the brd client that, if I understand, should be implementing a full node.
picocoin executable should be implementing the SPV node instead.
am I correct?
I will give a more deep read to the code..
Aido
Sr. Member
****
Offline Offline

Activity: 249
Merit: 250


1. Collect underpants 2. ? 3. Profit


View Profile
October 01, 2016, 12:09:49 PM
 #123

Hi marcopal,

If you look at the code you will see that both the client (picocoin) and the block relay daemon (brd) both have a init_blkdb() function. This creates the emplty blkdb file.

brd also has a block_process() function which uses blkdb_add() for adding blocks to the file. This is what my query to Jeff was about in the previous post.

The client (picocoin) does not have a block_process() function so nothing more is done to the blkdb file after it is created.

Interesting Bash command line, try it Wink:
bitcoin-cli sendtoaddress 1Aidan4r4rqoCBprfp2dVZeYosZ5ryVqH6 `bitcoin-cli getbalance`
marcopal
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
October 04, 2016, 08:05:06 AM
 #124

thank you Aido.

how much effort, in your opinion, will take to have a full featured SPV node and HD wallet starting from the picocoin code?
do you know about any other SPV implementations in pure C?

marcus_of_augustus
Legendary
*
Offline Offline

Activity: 2758
Merit: 1096



View Profile
October 12, 2016, 10:37:46 AM
 #125

thank you Aido.

how much effort, in your opinion, will take to have a full featured SPV node and HD wallet starting from the picocoin code?
do you know about any other SPV implementations in pure C?


I don't think there are any SPV clients in pure C out there.

mSIGNA https://github.com/ciphrex/mSIGNA is a c++ SPV client that is feature-rich

marcopal
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
October 12, 2016, 02:06:52 PM
 #126

thank you marcus_of_augustus
Pages: « 1 2 3 4 5 6 [7]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!