Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Jun 28, 2015

No description provided.

@paveljanik
Copy link
Contributor

No wallet build fails with:

CXX libbitcoin_server_a-init.o
init.cpp: In function ‘std::string HelpMessage(HelpMessageMode)’:
init.cpp:363:156: error: ‘DEFAULT_WALLET_DBLOGSIZE’ was not declared in this scope
init.cpp:368:121: error: ‘DEFAULT_FLUSHWALLET’ was not declared in this scope
init.cpp:394:128: error: ‘DEFAULT_WALLET_PRIVDB’ was not declared in this scope

@jgarzik
Copy link
Contributor

jgarzik commented Jun 28, 2015

concept ACK.

  • seemed like the REST constant should go in a rest, not rpc, file

@petertodd
Copy link
Contributor

concept ACK

@luke-jr
Copy link
Member Author

luke-jr commented Jul 1, 2015

@jgarzik I put it in rpcserver.h because the -rest option is used in rpcserver.cpp, which handles all HTTP requests. There is no rest.h - do you really want me to make one just for this?

@luke-jr
Copy link
Member Author

luke-jr commented Jul 1, 2015

@paveljanik Fixed.

src/main.h Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you call this TXINDEX_DEFAULT instead of DEFAULT_TXINDEX?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, changed for consistency.

src/util.h Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaring the constant and its value in a header won't work well for data structures that require a larger amount of memory or indirected pointers, such as strings, structs, objects etc. In worst case this causes errors in some compilers, in best case this causes unnecessary memory use.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So please move the content of the variable and BITCOIN_PID_FILENAME to util.cpp
Apart from that I'd like to merge this

@laanwj
Copy link
Member

laanwj commented Jul 20, 2015

Concept ACK

@laanwj
Copy link
Member

laanwj commented Aug 20, 2015

Needs rebase + string nit addresed

@dcousens
Copy link
Contributor

concept ACK

@jgarzik
Copy link
Contributor

jgarzik commented Oct 1, 2015

concept ACK - as @laanwj says it appears merge-ready once rebased + nits addressed

@luke-jr
Copy link
Member Author

luke-jr commented Oct 1, 2015

Rebased, addressed nit, added equivalent commit for -uiplatform. (Travis passes.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should use uiInterface here, nor put this uiplatform id as a variable on the UI interface (as bitcoind has no business with it). I'd just check for mode == HMM_BITCOIN_QT, like for the other options.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I understand now, you want to show the actual default here. Ok then it makes sense.
We should never have moved the UI-specific options back to init, but that's not your fault.

@dcousens
Copy link
Contributor

dcousens commented Oct 4, 2015

utACK, however I didn't cross verify the constants.

@maflcko
Copy link
Member

maflcko commented Oct 5, 2015

utACK 29266b6.

@maflcko
Copy link
Member

maflcko commented Oct 13, 2015

Does this need more reviewers or can it be merged as is? (Any further merge conflicts would only retrigger review, so let's try to finish with this PR.)

@maflcko
Copy link
Member

maflcko commented Oct 20, 2015

Needs rebase (caused by #6235)

@dcousens
Copy link
Contributor

@luke-jr this needs rebase
@laanwj anything holding back from merge?

@sipa
Copy link
Member

sipa commented Nov 28, 2015

Fixed by #6961.

@sipa sipa closed this Nov 28, 2015
@maflcko
Copy link
Member

maflcko commented Nov 28, 2015

@luke-jr are you going to rebase (3/3) 29266b6?

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants