Commit Graph

735 Commits

Author SHA1 Message Date
Ben Boeckel
5680c9cac7 msys: factor out -Werror on msys
There are Windows-related warnings turned into errors here.
2014-11-17 18:19:54 -05:00
Ben Boeckel
475154255a msys: look in msys' directory for files
This tells find_path and find_library to look under this directory first
which is what we want on msys2.
2014-11-17 18:19:53 -05:00
Oran Juice
299ee2357e
Added getindexes. 2014-11-16 15:59:51 +05:30
Oran Juice
2ec4502ec8
Added getinfo. 2014-11-15 00:42:28 +05:30
Oran Juice
6dee7774d5
Added getconnections. Increased max response size to 2000. 2014-11-13 21:49:12 +05:30
Oran Juice
bdd6b830fe
Added getblockheaderbyhash and getblockheaderbyheight. 2014-11-12 19:31:52 +05:30
Oran Juice
37ddd82fe8
Added getlastblockheader. 2014-11-11 22:15:25 +05:30
Oran Juice
da6216288c
Documented JSON RPC handlers. 2014-11-11 18:56:40 +05:30
iamsmooth
dde7897fd4 Disable legacy fees for now 2014-11-11 02:03:00 +00:00
Oran Juice
7910a3941f
Split RPC handler definitions into separate .cpp file. 2014-11-10 22:35:50 +05:30
Ben Boeckel
d855fe4e89 miniupnpc: bump the _POSIX_C_SOURCE feature macro
FreeBSD doesn't expose IPv6 structures without this.
2014-11-10 11:13:15 -05:00
Oran Juice
f3ac82b28e
Added submitblock and commented Json_rpc_http_server. 2014-11-10 20:03:16 +05:30
Oran Juice
43286b46e5
More RPC handlers, more JSON RPC 2.0 compliant. 2014-11-10 02:14:09 +05:30
Oran Juice
5470c0c070
Added getblockhash. 2014-11-09 16:25:05 +05:30
iamsmooth
cc74b43651 Remove DEFAULT_FEE, add temporary acceptance of too-small per-kb fee >= 0.1, denominations based on DEFAULT_DUST_THRESHOLD, document fee arg to create_transactions as unused, se DEFAULT_DUST_THRESHOLD for wallet dust collection instead of calcualted tx fee 2014-11-09 10:53:29 +00:00
Oran Juice
0381c3a5a4
Added miningstatus, getblockcount. Puts method name and RPC id in response JSON. 2014-11-09 15:40:58 +05:30
Oran Juice
a273353b32
Added stopmining. 2014-11-08 21:41:43 +05:30
Oran Juice
ffe1737fef
Added startmining. Check for block ID length in getblocks. 2014-11-08 21:14:50 +05:30
Oran Juice
bd16e82e3c
Added gettransactions. Check for types inside arrays 2014-11-08 19:05:05 +05:30
Oran Juice
6a97599839
Use rapidjson for all JSON processing in handlers. Added handler for getblocks. 2014-11-08 17:29:18 +05:30
Riccardo Spagni
2b93288fd7
Merge pull request #184
d2287d3 per kb fees not passing correct fee to transfer() (Thomas Winget)
dc67b12 Should now properly do per-kb fee (Thomas Winget)
557e27f per kb fees (Thomas Winget)
2014-11-06 22:11:49 -07:00
Thomas Winget
d2287d3108 per kb fees not passing correct fee to transfer() 2014-11-06 22:09:23 -07:00
Thomas Winget
dc67b12ea9 Should now properly do per-kb fee
I'm an idiot.
2014-11-06 22:09:14 -07:00
Thomas Winget
557e27fd21 per kb fees 2014-11-06 22:09:07 -07:00
Oran Juice
eb355a4021
Added getheight 2014-11-06 21:35:53 +05:30
Oran Juice
5eb1d32ef7
Replaced old RPC server in daemon with new one. Yet to add RPC handlers. 2014-11-03 00:38:16 +05:30
Oran Juice
fedf1eb473
net_skeleton server made usable with daemon 2014-11-02 20:45:26 +05:30
Oran Juice
ac662269cf
Fixed problem in Json_rpc_http_server due to C-like nature of net_skeleton 2014-11-02 11:58:08 +05:30
Oran Juice
edfaa2e484
Wrote a JSON RPC HTTP Server class using net_skeleton. Has issues due to non-OOP nature of net_skeleton 2014-11-01 21:35:26 +05:30
Sammy Libre
250254c338 Exception handling while refreshing in rpc wallet (credits to QCN) 2014-11-01 11:30:53 +05:00
Ben Boeckel
c696492549 unbound: fix getaddrinfo detection for 32-bit windows
On Windows, getaddrinfo is part of the Windows API and as such is
__stdcall, not __cdecl, so check_function_exists fails because the
declaration doesn't match the mangling __stdcall has. Instead, use a
header to include the symbol as declared on the system and use
check_symbol_exists instead.

Tested-By: greatwolf on IRC
2014-10-24 17:40:52 -04:00
Ben Boeckel
e3776876af cmake: Windows and static builds need this 2014-10-24 15:52:01 -04:00
Ben Boeckel
01895dd067 cmake: fix up link lines 2014-10-24 15:30:57 -04:00
Ben Boeckel
4b6515cfb5 unbound: fix type checking 2014-10-24 15:30:44 -04:00
Ben Boeckel
d43a20f8f4 unbound: plumb the libdir up
This is necessary for static builds where the linking is passed around
to dependent targets, but the library is lost.
2014-10-24 15:29:56 -04:00
Ben Boeckel
7d708e4223 cmake: support 2.8.7
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer
versions prefer PUBLIC and PRIVATE instead, but still support the LINK_
prefix.
2014-10-24 15:29:51 -04:00
Ben Boeckel
464c2805e5 cmake: fix up miniupnpc's define
It's only necessary on Windows builds and new versions renamed the
define without any compatibility bridge.
2014-10-23 16:43:00 -04:00
Ben Boeckel
9689df925c cmake: clean up EXTRA_LIBRARIES
pthread is handled by CMAKE_THREAD_LIBS_INIT while libdl isn't needed.
2014-10-23 16:42:35 -04:00
Ben Boeckel
3b7bdcb790 cmake: set the project name 2014-10-23 16:42:35 -04:00
Ben Boeckel
0f0efc4af2 cmake: prepend to CMAKE_MODULE_PATH 2014-10-23 16:42:35 -04:00
Ben Boeckel
031e3da724 cmake: remove scream-make (all-caps functions) 2014-10-23 16:42:35 -04:00
Ben Boeckel
abbd5c0bdb unbound: import cmake build system 2014-10-23 16:42:35 -04:00
Ben Boeckel
e59b5b7078 miniupnpc: clean up build system
Changes:

  - remove amiga and solaris conditionals
  - remove -fPIC hackery (use POSITION_INDEPENDENT_CODE instead)
  - remove tests
  - retab
2014-10-23 16:42:35 -04:00
Ben Boeckel
475fe209a8 cmake: minor cleanups (indentation and typos) 2014-10-23 16:42:35 -04:00
Ben Boeckel
799e8b241f cmake: use option() for STATIC 2014-10-23 16:42:35 -04:00
Ben Boeckel
c24d22b44e cmake: clean up if auto-dereferencing
CMake will auto-dereference variable names in if statements, so there's
no need to dereference them manually.
2014-10-23 16:42:35 -04:00
Ben Boeckel
9ed415ad43 build: inform the build of what generates version.h
Without this, Ninja requires a two-step process because it doesn't know
what generates version.h it sees from its depfile support and when it
changes in one run, it has already pruned the dependent nodes from its
internal graph and requires a second run to catch it.
2014-10-23 16:42:35 -04:00
Ben Boeckel
eba180a1c7 cmake: support git info in released tarballs 2014-10-23 16:42:34 -04:00
Ben Boeckel
eeffac6839 cmake: fix up BOOST_IGNORE_SYSTEM_PATHS
The option was set twice when it only needs to be set once. Also fix a
bogus dereference and spurious whitespace.
2014-10-23 16:42:34 -04:00
Ben Boeckel
a43f1a88d8 cmake: remove configuration variables
CMAKE_BUILD_TYPE is meant for single-config build tools (e.g., make and
ninja) while CMAKE_CONFIGURATION_TYPES is meant for multi-config build
tools (e.g., Xcode and Visual Studio). They should not be mixed or
manually set.
2014-10-23 16:42:34 -04:00