Conversation
1 similar comment
|
I think moving src/wallet.c to lib/wallet/wallet.c exposes some layering issues. It is unusual and avoidable to create a library routine -- wallet_filename() -- and then require the upper layer program to implement it. src/wallet.c was written to be a module of the wallet program (picocoin), and moving this to lib/wallet is premature. It is better to move functionality by code movement to lib/wallet, and let lib/wallet grow organically as the picocoin wallet is built. The other 25% or so of this patch is ok :) |
1ab7ddf to
0c0af41
Compare
|
Fair point. |
1 similar comment
1 similar comment
1 similar comment
|
Hi, The most recent commit to this PR tries to modularize the wallet code a small bit more. It organizes some of the wallet code into it's own subdirectory and also it's own separate library ( |
41fc2ac to
7c53663
Compare
|
Hi @jgarzik, I have added to libbitc the 25% :-) of this pull request that was OK and further built on it. Although this PR has since been tidied up a bit. On top of this, libbitc no longer depends on libjansson and has instead embedded the ultralightweight JSON parser cJSON. See: If you wish I can create another pull request to remove the libjansson dependency from picocoin also. |
Hi,
This pull request modularizes the wallet code, placing wallet code and AES code in their own library. This modularization is in line with the direction bitcoin-core is also going.