Bitcoin Forum
April 25, 2024, 08:56:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind 17mb? How to shrink it after compiling?  (Read 1252 times)
payb.tc (OP)
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
July 31, 2011, 08:00:02 AM
 #1

after compiling bitcoind it's come out as 17mb... it actually runs fine (finally, yay!), but I'm wondering what is the final step in the process... what util would one use to strip it down to the size that normally gets released?
1714078594
Hero Member
*
Offline Offline

Posts: 1714078594

View Profile Personal Message (Offline)

Ignore
1714078594
Reply with quote  #2

1714078594
Report to moderator
1714078594
Hero Member
*
Offline Offline

Posts: 1714078594

View Profile Personal Message (Offline)

Ignore
1714078594
Reply with quote  #2

1714078594
Report to moderator
1714078594
Hero Member
*
Offline Offline

Posts: 1714078594

View Profile Personal Message (Offline)

Ignore
1714078594
Reply with quote  #2

1714078594
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
July 31, 2011, 08:11:27 AM
 #2

Maybe you compiled it with debug code?

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
mrb
Legendary
*
Offline Offline

Activity: 1512
Merit: 1027


View Profile WWW
July 31, 2011, 09:36:20 AM
 #3

what util would one use to strip it down to the size that normally gets released?

Simply "strip bitcoin"!
payb.tc (OP)
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
July 31, 2011, 09:49:45 AM
 #4

thank you! duh.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
August 01, 2011, 05:44:46 AM
 #5

I would recommend not stripping it unless you have some specific need to. The larger size is due to debug information that is never loaded or used when the program is running (it doesn't actually bloat memory or slow execution in any way). But without it, you cannot make sense of core dumps.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
ShadowOfHarbringer
Legendary
*
Offline Offline

Activity: 1470
Merit: 1005


Bringing Legendary Har® to you since 1952


View Profile
September 22, 2011, 10:10:58 AM
 #6

I would recommend not stripping it unless you have some specific need to. The larger size is due to debug information that is never loaded or used when the program is running (it doesn't actually bloat memory or slow execution in any way). But without it, you cannot make sense of core dumps.

I have just compiled it and it is also 17 MB...

So you are saying this is completely normal, and i have absolutely nothing to worry about, including running that version on production servers ?

ShadowOfHarbringer
Legendary
*
Offline Offline

Activity: 1470
Merit: 1005


Bringing Legendary Har® to you since 1952


View Profile
September 22, 2011, 11:12:22 AM
Last edit: September 22, 2011, 11:25:59 AM by ShadowOfHarbringer
 #7

Update:

It would appear that the unstripped version is not production safe. It damaged the database and now when i try to run normal (non-compiled) client, it crashes with following error:

Quote
************************
EXCEPTION: 22DbRunRecoveryException      
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery      
bitcoin in AppInit()      

terminate called after throwing an instance of 'DbRunRecoveryException'
  what():  DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery

EDIT:
Actually, I can only run compiled versions now, the binary version from bitcoin.org crashes every time i try to launch it using the same database. Any ideas ?

Perhaps different version of BerkeleyDB on my debian system or whatever ?

ArtForz
Sr. Member
****
Offline Offline

Activity: 406
Merit: 257


View Profile
September 22, 2011, 12:25:38 PM
 #8

the database format itself is compatible, the transaction logs are not. remove /database/log.* while bitcoind is stopped and you can happily switch from bdb5.1 back to 4.6 and similar stunts.

bitcoin: 1Fb77Xq5ePFER8GtKRn2KDbDTVpJKfKmpz
i0coin: jNdvyvd6v6gV3kVJLD7HsB5ZwHyHwAkfdw
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!