Bitcoin Forum
May 04, 2024, 03:33:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7]  All
  Print  
Author Topic: [ANNOUNCE] picocoin and libccoin -- C-based bitcoin library and client  (Read 30564 times)
Aido
Sr. Member
****
Offline Offline

Activity: 248
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`
1714836786
Hero Member
*
Offline Offline

Posts: 1714836786

View Profile Personal Message (Offline)

Ignore
1714836786
Reply with quote  #2

1714836786
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714836786
Hero Member
*
Offline Offline

Posts: 1714836786

View Profile Personal Message (Offline)

Ignore
1714836786
Reply with quote  #2

1714836786
Report to moderator
1714836786
Hero Member
*
Offline Offline

Posts: 1714836786

View Profile Personal Message (Offline)

Ignore
1714836786
Reply with quote  #2

1714836786
Report to moderator
1714836786
Hero Member
*
Offline Offline

Posts: 1714836786

View Profile Personal Message (Offline)

Ignore
1714836786
Reply with quote  #2

1714836786
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: 248
Merit: 250


1. Collect underpants 2. ? 3. Profit


View Profile
October 01, 2016, 12:09:49 PM
Last edit: October 01, 2016, 01:24:07 PM by Aido
 #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: 3920
Merit: 2348


Eadem mutata resurgo


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:  

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