[Dev] Documenting Feathercoin Specific Software settings - Part 17
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Update Unix build instructions to inclide openSSL build from scratch :: commit
https://github.com/FeatherCoin/Feathercoin/commit/46366fc62cba1ddb37520c4d23c84c703b2408f6
doc/README.md
+ +### Build Feathercoin using openSSL from source + +cd ~/Feathercoin/ +mkdir openSSL +cd openSSL +wget https://www.openssl.org/source/openssl-1.0.1l.tar.gz +tar zxvf openssl-1.0.1l.tar.gz +cd openssl-1.0.1l +export CFLAGS="-fPIC" +./config --prefix=~/Feathercoin/openSSL/build shared enable-ec enable-ecdh enable-ecdsa -lanl -ldl +sudo make +sudo make install + + +**Build with custom openSSL builds** + +cd /Feathercoin + +make clean + +./autogen.sh + +./configure --prefix=/home/aciddude/Feathercoin/build CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" PKG_CONFIG_PATH=/home/aciddude/Feathercoin/openSSL/build/lib/pkgconfig LIBS=-Wl,-rpath=/home/aciddude/Feathercoin/openSSL/build/lib --disable-tests SSL_LIBS="/home/aciddude/Feathercoin/openSSL/build/lib/libssl.a /home/aciddude/Feathercoin/openSSL/build/lib/libcrypto.a -ldl" --with-gui + +time make + +sudo make install + +
Code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/base58_tests.cpp
+ CSecret privkey(exp_payload.begin(), exp_payload.end()); CKey key; - CSecret secret2; + key.SetSecret(privkey, isCompressed); - key.SetSecret(secret2); - secret.SetSecret(secret2, isCompressed); - BOOST_CHECK_MESSAGE(secret.ToString() == exp_base58string, "result mismatch: " + strTest); + bool fCompressed=false; + secret.SetSecret(privkey, isCompressed); + BOOST_CHECK_MESSAGE(secret.ToString().c_str() == exp_base58string, "result mismatch: " + strTest); } } +
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/data/base58_keys_valid.json
- "5nYxd8Vcb5CwwSZzeYkLf2UHrHbet1QqDzbZDjx1h2kP6k9RJms", + "5njpn1dGnyhduB3Hog2tCoYcAS3XUg9F1saQAcKJbbpy2FszZcR", - "C862A03EE716826803C17C8A0F82B86D250FB63A5044A01F906F860878E26079", + "E10E0E8270779EE90D3577C1AD767645933DAE88AD7049FFF17D259865BD327E",
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/key_tests.cpp
- "5nYxd8Vcb5CwwSZzeYkLf2UHrHbet1QqDzbZDjx1h2kP6k9RJms", + "5njpn1dGnyhduB3Hog2tCoYcAS3XUg9F1saQAcKJbbpy2FszZcR", - "C862A03EE716826803C17C8A0F82B86D250FB63A5044A01F906F860878E26079", + "E10E0E8270779EE90D3577C1AD767645933DAE88AD7049FFF17D259865BD327E",
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/key_tests.cpp
- key1C.SetSecret(secret1C); + key1C.SetSecret(secret1C, fCompressed);
Code replaced
- key2C.SetSecret(secret2C); + key2C.SetSecret(secret2C, fCompressed);
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/main_tests.cpp
- for (int nHeight = 0; nHeight < 14000000; nHeight += 1000) { + for (int nHeight = 0; nHeight < 21000000; nHeight += 1000) {
Code replaced
- BOOST_CHECK(nSum == 2099999997690000ULL); + BOOST_CHECK_EQUAL(nSum, 33581578125000000ULL);
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Final fix for build tests :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/2d17002e704eeeb05cbd14dc57e7b91482f31f3f
src/test/transaction_tests.cpp
- t.vout[0].nValue = 501; // dust + t.vout[0].nValue = 5011; // dust - BOOST_CHECK(!IsStandardTx(t, reason)); + // Feathercoin does not enforce isDust(). Per dust fees are considered sufficient as deterrant. + // BOOST_CHECK(!IsStandardTx(t, reason));
Code replaced
- t.vout[0].nValue = 601; // not dust + t.vout[0].nValue = 6011; // not dust
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Removed legacy test :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/921d7eb2a9d53ade7c991420fe888a903a471e69
src/test/Makefile.am
- alert_tests.cpp \ - bloom_tests.cpp \ - miner_tests.cpp \
Code removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Fixed calculation / block reward :: commit
Work on tests allowing the test app to build.
Correct issues with unit tests due to interface and new code variables etc.
https://github.com/FeatherCoin/Feathercoin/commit/963769e83cfe95710807508462058e03ccc4a38a
src/test/main_tests.cpp
- for (int nHeight = 0; nHeight < 21000000; nHeight += 1000) { + for (int nHeight = 0 ; nHeight < 204638; nHeight += 1000) { uint64_t nSubsidy = GetBlockValue(nHeight, 0); BOOST_CHECK(nSubsidy <= 200 * COIN); nSum += nSubsidy * 1000; BOOST_CHECK(MoneyRange(nSum)); } - BOOST_CHECK_EQUAL(nSum, 33581578125000000ULL); + for (int nHeight = 204639 ; nHeight < 23919999; nHeight += 1000) { + uint64_t nSubsidy = GetBlockValue(nHeight, 0); + BOOST_CHECK(nSubsidy <= 80 * COIN); + nSum += nSubsidy * 1000; + BOOST_CHECK(MoneyRange(nSum)); + } + BOOST_CHECK_EQUAL(nSum, 33599996093750000ULL);
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Update docs - copying zxing to source directory :: commit
https://github.com/FeatherCoin/Feathercoin/commit/963769e83cfe95710807508462058e03ccc4a38a
doc/README.md
+ +Copy the zxing headers directory back to Feathercoin source. + +From: + /usr/include/zxing + +To: + ~/Feathercoin/src/zxing +
Code added
+Copy the zxing directory to Feathercoin/src, this time it will be located : + + /usr/local/include/zxing
Code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Update docs - copying zxing to source directory :: commit
https://github.com/FeatherCoin/Feathercoin/commit/2e15d4966f40c2d9cb4d919ff9d43f38bee4812b
doc/README.md
-./configure --prefix=/home/aciddude/Feathercoin/build CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" PKG_CONFIG_PATH=/home/aciddude/Feathercoin/openSSL/build/lib/pkgconfig LIBS=-Wl,-rpath=/home/aciddude/Feathercoin/openSSL/build/lib --disable-tests SSL_LIBS="/home/aciddude/Feathercoin/openSSL/build/lib/libssl.a /home/aciddude/Feathercoin/openSSL/build/lib/libcrypto.a -ldl" --with-gui +./configure --prefix=/home/USER/Feathercoin/build CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" PKG_CONFIG_PATH=/home/USER/Feathercoin/openSSL/build/lib/pkgconfig LIBS=-Wl,-rpath=/home/USER/Feathercoin/openSSL/build/lib --disable-tests SSL_LIBS="/home/USER/Feathercoin/openSSL/build/lib/libssl.a /home/USERe/Feathercoin/openSSL/build/lib/libcrypto.a -ldl" --with-gui
Code replaced
+### Problems building with moc + +If you get a moc error: + +error: #error "This file was generated using the moc from 4.8.7. + +If you get : + +Qt Meta Object Compiler version 63 (Qt 4.8.7) + +Reset moc to Qt5: + +export QT_SELECT=5 +moc -version + +check anaconda is in the path .bashrc . It can install an old moc.
MOC error help code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Updated DMG background png and psd :: commit
https://github.com/FeatherCoin/Feathercoin/commit/7e8b516a579bbb6371381aafb1709d54b32eac08
contrib/macdeploy/*
contrib/macdeploy/background.png contrib/macdeploy/background.psd
Additional files?
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
adjusted icon arrangement when building DMG with Make Deploy :: commit
https://github.com/FeatherCoin/Feathercoin/commit/5398105ed5c5e656cfc5884ca0d9d7225137ef11
contrib/macdeploy/fancy.plist
+ <integer>720</integer>
Example of layout changes
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
First Travis File :: commit
Travis experiment was not fully completed for this release, regressed later
Auto build system.
Travis CI is a hosted, distributed continuous integration service used to build and test projects hosted at GitHub. Travis CI automatically detects when a commit has been made and pushed to a GitHub repository that is using Travis CI, and each time this happens, it will try to build the project and run tests.
https://github.com/FeatherCoin/Feathercoin/commit/c33987dec1f4a9bb4b7d9a715ab2dcf99888af61
.travis.yml
New file added
+# errata: +# - A travis bug causes caches to trample eachother when using the same +# compiler key (which we don't use anyway). This is worked around for now by +# replacing the "compilers" with a build name prefixed by the no-op ":" +# command. See: https://github.com/travis-ci/travis-ci/issues/4393 +# - sudo/dist/group are set so as to get Blue Box VMs, necessary for [loopback] +# IPv6 support + +sudo: required +dist: precise +group: legacy + +os: linux +language: cpp +compiler: gcc +env: + global: + - MAKEJOBS=-j3 + - RUN_TESTS=false + - CCACHE_SIZE=100M + - CCACHE_TEMPDIR=/tmp/.ccache-temp + - CCACHE_COMPRESS=1 + - BASE_OUTDIR=$TRAVIS_BUILD_DIR/out + - SDK_URL=https://bitcoincore.org/depends-sources/sdks +cache: + apt: true + directories: + - depends/built + - depends/sdk-sources + - $HOME/.ccache +matrix: + fast_finish: true + include: + - compiler: ": ARM" + env: HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf" DEP_OPTS="NO_QT=1" GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat" + - compiler: ": feathercoind" + env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat CPPFLAGS=-DDEBUG_LOCKORDER" + - compiler: ": No wallet" + env: HOST=x86_64-unknown-linux-gnu DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat" + - compiler: ": 32-bit + dash" + env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat" USE_SHELL="/bin/dash" + - compiler: ": Cross-Mac" + env: HOST=x86_64-apple-darwin11 PACKAGES="gcc-multilib g++-multilib cmake libcap-dev libz-dev libbz2-dev" OSX_SDK=10.7 GOAL="deploy" + - compiler: ": Win64" + env: HOST=x86_64-w64-mingw32 PACKAGES="nsis gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-dev wine bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui" MAKEJOBS="-j2" + - compiler: ": Win32" + env: HOST=i686-w64-mingw32 PACKAGES="nsis gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev wine bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui" MAKEJOBS="-j2" + exclude: + - compiler: gcc +install: + - if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi + - if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi +before_script: + - unset CC; unset CXX + - mkdir -p depends/SDKs depends/sdk-sources + - if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi + - if [ -n "$OSX_SDK" -a -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi + - make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS +script: + - if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi + - OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST + - BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib" + - depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export CCACHE_READONLY=1; fi + - test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh + - ./configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false) + - make distdir PACKAGE=bitcoin VERSION=$HOST + - cd bitcoin-$HOST + - ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false) + - make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false ) + - export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib + - if [ "$RUN_TESTS" = "true" ]; then make check; fi + - if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.sh; fi +after_script: + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then (echo "Upload goes here. Something like: scp -r $BASE_OUTDIR server" || echo "upload failed"); fi
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
First Travis File :: commit
Update Unix example build for zxing with additional switch settings which improve build (success) consistency
https://github.com/FeatherCoin/Feathercoin/commit/ca94836e07dcb539313e8e290231b4066d0d7fd3
doc/README.md
+ export CXXFLAGS="-fPIC" - cmake -G 'Unix Makefiles' .. -DCMAKE_BUILD_TYPE=Release + cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-fPIC D_GLIBCXX_USE_CXX11_ABI=1" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON ..
Code replaced
+Copy the zxing directory to ~/Feathercoin/src, this time it will be located :
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
removed makefiles from version control :: commit
https://github.com/FeatherCoin/Feathercoin/commit/5ecb24222d20a9accad620cca70ca2b0153ee2e0
.gitignore
+Makefile* +*.in
Code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
modified search messages for bdb :: commit
https://github.com/FeatherCoin/Feathercoin/commit/a496d3dbe96c230b56da086c2bb955fd50182d9e
m4/bitcoin_find_bdb48.m4
- AC_MSG_CHECKING([for Berkeley DB C++ headers]) + AC_MSG_CHECKING([for Berkeley DB C++ headers 4.8])
Code replaced
- AC_MSG_CHECKING([for Berkeley DB C++ headers]) + AC_MSG_CHECKING([for Berkeley DB C++ headers 5.x 4.8])
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Updated Travis CI File :: commit
Auto build experiment
https://github.com/FeatherCoin/Feathercoin/commit/6518cb10d39cf28aa059ed1eafed65a4b8b408ed
.travis.yml
-# command. See: https://github.com/travis-ci/travis-ci/issues/4393 +# command. See: https://github.com/travis-ci/casher/issues/6 -# - sudo/dist/group are set so as to get Blue Box VMs, necessary for [loopback] -# IPv6 support - -sudo: required -dist: precise -group: legacy
Code removed
- - if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi + - if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then wget $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -O depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
Code replaced
- - make distdir PACKAGE=bitcoin VERSION=$HOST + - make distdir PACKAGE=feathercoin VERSION=$HOST - - cd bitcoin-$HOST + - cd feathercoin-$HOST
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Removed Travis-CI File :: commit
Auto build experiment, removed for this release
https://github.com/FeatherCoin/Feathercoin/commit/8dd248957bfd9d4b03c181d6f2a2440ce86cbe9e
.travis.yml
File removed
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Updated manpages :: commit
Document rationalization / review
https://github.com/FeatherCoin/Feathercoin/commit/8539b0336cf89368af9316efec75e6312659e6eb
contrib/debian/manpages/feathercoin-cli.1
+.TH BITCOIND "1" "January 2011" "feathercoin-cli 0.9.6" +.SH NAME +feathercoin-cli \- peer-to-peer network based digital currency +.SH SYNOPSIS +feathercoin-cli [options] <command> [params] +.TP +feathercoin-cli [options] help <command> \- Get help for a command +.SH DESCRIPTION +This manual page documents the feathercoin-cli program. Feathercoin is a peer-to-peer digital currency based on Bitcoin. Peer-to-peer (P2P) means that there is no central authority to issue new money or keep track of transactions. Instead, these tasks are managed collectively by the nodes of the network. Advantages: + +Feathercoins can be sent easily through the Internet, without having to trust middlemen. Transactions are designed to be irreversible. Be safe from instability caused by fractional reserve banking and central banks. The limited inflation of the Feathercoins system’s money supply is distributed evenly (by CPU and GPU power) throughout the network, not monopolized by banks. + +.SH OPTIONS +.TP +\fB\-conf=\fR<file> +Specify configuration file (default: feathercoin.conf) +.TP +\fB\-gen\fR +Generate coins +.TP +\fB\-gen\fR=\fI0\fR +Don't generate coins +.TP +\fB\-min\fR +Start minimized +.TP +\fB\-datadir=\fR<dir> +Specify data directory +.TP +\fB\-proxy=\fR<ip:port> +Connect through socks4 proxy +.TP +\fB\-addnode=\fR<ip> +Add a node to connect to +.TP +\fB\-connect=\fR<ip> +Connect only to the specified node +.TP +\fB\-paytxfee=\fR<amt> +Fee per KB to add to transactions you send +.TP +\fB\-server\fR +Accept command line and JSON\-RPC commands +.TP +\fB\-daemon\fR +Run in the background as a daemon and accept commands +.TP +\fB\-testnet\fR +Use the test network +.TP +\fB\-rpcuser=\fR<user> +Username for JSON\-RPC connections +.TP +\fB\-rpcpassword=\fR<pw> +Password for JSON\-RPC connections +.TP +\fB\-rpcport=\fR<port> +Listen for JSON\-RPC connections on <port> +.TP +\fB\-rpcallowip=\fR<ip> +Allow JSON\-RPC connections from specified IP address +.TP +\fB\-rpcconnect=\fR<ip> +Send commands to node running on <ip> +.PP +SSL options: (see the Feathercoin Wiki for SSL setup instructions) +.TP +\fB\-rpcssl\fR=\fI1\fR +Use OpenSSL (https) for JSON\-RPC connections +.TP +\fB\-rpcsslcertificatchainfile=\fR<file.cert> +Server certificate file (default: server.cert) +.TP +\fB\-rpcsslprivatekeyfile=\fR<file.pem> +Server private key (default: server.pem) +.TP +\fB\-rpcsslciphers=\fR<ciphers> +Acceptable ciphers (default: TLSv1 +HIGH:\:!SSLv2:\:!aNULL:\:!eNULL:\:!AH:\:!3DES:\:@STRENGTH) +.TP +\-? +This help message +.SH COMMANDS +.TP +\fBbackupwallet 'destination'\fR +Safely copies *wallet.dat* to 'destination', which can be a directory or a path with filename. +.TP +\fBgetaccount 'feathercoinaddress'\fR +Returns the account associated with the given address. +.TP +\fBsetaccount 'feathercoinaddress' ['account']\fR +Sets the ['account'] associated with the given address. ['account'] may be omitted to remove an address from ['account']. +.TP +\fBgetaccountaddress 'account'\fR +Returns a new feathercoin address for 'account'. +.TP +\fBgetaddressesbyaccount 'account'\fR +Returns the list of addresses associated with the given 'account'. +.TP +\fBgetbalance 'account'\fR +Returns the server's available balance, or the balance for 'account'. +.TP +\fBgetblockcount\fR +Returns the number of blocks in the longest block chain. +.TP +\fBgetblocknumber\fR +Returns the block number of the latest block in the longest block chain. +.TP +\fBgetconnectioncount\fR +Returns the number of connections to other nodes. +.TP +\fBgetdifficulty\fR +Returns the proof-of-work difficulty as a multiple of the minimum difficulty. +.TP +\fBgetgenerate\fR +Returns boolean true if server is trying to generate feathercoins, false otherwise. +.TP +\fBsetgenerate 'generate' ['genproclimit']\fR +Generation is limited to ['genproclimit'] processors, \-1 is unlimited. +.TP +\fBgethashespersec\fR +Returns a recent hashes per second performance measurement while generating. +.TP +\fBgetinfo\fR +Returns an object containing server information. +.TP +\fBgetnewaddress 'account'\fR +Returns a new feathercoin address for receiving payments. If 'account' is specified (recommended), it is added to the address book so payments received with the address will be credited to 'account'. +.TP +\fBgetreceivedbyaccount 'account' ['minconf=1']\fR +Returns the total amount received by addresses associated with 'account' in transactions with at least ['minconf'] confirmations. +.TP +\fBgetreceivedbyaddress 'feathercoinaddress' ['minconf=1']\fR +Returns the total amount received by 'feathercoinaddress' in transactions with at least ['minconf'] confirmations. +.TP +\fBgettransaction 'txid'\fR +Returns information about a specific transaction, given hexadecimal transaction ID. +.TP +\fBgetwork 'data'\fR +If 'data' is specified, tries to solve the block and returns true if it was successful. If 'data' is not specified, returns formatted hash 'data' to work on: + + "midstate" : precomputed hash state after hashing the first half of the data. + "data" : block data. + "hash1" : formatted hash buffer for second hash. + "target" : little endian hash target. +.TP +\fBhelp 'command'\fR +List commands, or get help for a command. +.TP +\fBlistaccounts ['minconf=1']\fR +List accounts and their current balances. + *note: requires feathercoin 0.3.20 or later. +.TP +\fBlistreceivedbyaccount ['minconf=1'] ['includeempty=false']\fR +['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing: + + "account" : the account of the receiving address. + "amount" : total amount received by the address. + "confirmations" : number of confirmations of the most recent transaction included. +.TP +\fBlistreceivedbyaddress ['minconf=1'] ['includeempty=false']\fR +['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing: + + "address" : receiving address. + "account" : the account of the receiving address. + "amount" : total amount received by the address. + "confirmations" : number of confirmations of the most recent transaction included. +.TP +\fBlisttransactions 'account' ['count=10']\fR +Returns a list of the last ['count'] transactions for 'account' \- for all accounts if 'account' is not specified or is "*". Each entry in the list may contain: + + "category" : will be generate, send, receive, or move. + "amount" : amount of transaction. + "fee" : Fee (if any) paid (only for send transactions). + "confirmations" : number of confirmations (only for generate/send/receive). + "txid" : transaction ID (only for generate/send/receive). + "otheraccount" : account funds were moved to or from (only for move). + "message" : message associated with transaction (only for send). + "to" : message-to associated with transaction (only for send). + + *note: requires feathercoin 0.3.20 or later. +.TP +\fBmove <'fromaccount'> <'toaccount'> <'amount'> ['minconf=1'] ['comment']\fR +Moves funds between accounts. +.TP +\fBsendfrom* <'account'> <'feathercoinaddress'> <'amount'> ['minconf=1'] ['comment'] ['comment-to']\fR +Sends amount from account's balance to 'feathercoinaddress'. This method will fail if there is less than amount feathercoins with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success. +.TP +\fBsendtoaddress 'feathercoinaddress' 'amount' ['comment'] ['comment-to']\fR +Sends amount from the server's available balance to 'feathercoinaddress'. amount is a real and is rounded to the nearest 0.01. Returns transaction id on success. +.TP +\fBstop\fR +Stops the feathercoin server. +.TP +\fBvalidateaddress 'feathercoinaddress'\fR +Checks that 'feathercoinaddress' looks like a proper feathercoin address. Returns an object containing: + + "isvalid" : true or false. + "ismine" : true if the address is in the server's wallet. + "address" : feathercoinaddress. + + *note: ismine and address are only returned if the address is valid. + +.SH "SEE ALSO" +feathercoin.conf(5) +.SH AUTHOR +This manual page was written by Micah Anderson <micah@debian.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. +