forked from turtlecoin/turtlecoin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace Dockerfile version with branch * Readline support for ZedWallet * Handle comma separators in amounts for csv output * Add optional cors header to walletd * LWMA-2 Tweaks * Add progress bar for file save (as some saves are long/slow) * Update CryptoNoteProtocolHandler.cpp update from Simplewallet to ZedWallet * Fix mnemonic seed info not being output to walletd log file * Remove unneeded logging * WARNING: Breaking change. removes additional binary serializers from the wallet <-> node communication payloads * Zedwallet improvements * Fix build? * Fix build?? * Fix build??? * Fix build???? * Fix build?????? * Update ColouredMsg.h * Timeout on status comman * Fix build??????????????????? * Gonna neck myself * Adding a JSON HTTP command /feeinfo that a node operator can specify for donations regarding usage of the node. Per @RocksteadyTC * Adding the scripts I use to generate the checkpoints for pull requests to github.com/turtlecoin/checkpoints * Small tweaks * Typo * FAST timestamps god i'm an idiot * Use an explicit cast * Updating before we forget. * Bug fixes, tweaks to make us more forkable * Ubuntu is not Linux oops * Add integrated addresses to zedwallet * Add a method createIntegratedAddress to walletd * Support integrated addresses in sendTransaction() * More small tweaks to make forking easier * Adds a send_all command * Cmake static assert flag Improve compatibility of static assert. Cmake tries to compile then set flag to C_FLAGS and CXX_FLAGS if necessary. * Add files for cmake static assert flag Files needed for cmake static assert flag, on try_compile. * Remove static_assert.h in hash-ops.h * Delete static_assert.h static_assert.h is no longer needed. Cmake static assert flag will do. * Use period of time rather than amount of blocks for fork notifier * Remove hardcoded 11898 port (turtlecoin#343) * Remove hardcoded 11898 port * C strings pls go * Adjusting make targets (turtlecoin#348) * Changing make target for daemon to TurtleCoind Allows: make TurtleCoind * Changing make target for PaymentGateService to walletd allows for: make walletd * Chaging make target for PoolWallet to proper cAsIng * Changing make target for Miner to proper cAsInG * Port over karbo crypto, and some of aeon/monero's crypto (mainly slow hash) (turtlecoin#349) * Port over karbo crypto, and some of aeon/monero's crypto (mainly slow hash) * Update licenses * Tweaks * Fix tests not building * Windows fixes * walletd -> service https://github.com/turtlecoin/meta/issues/112 * Fix makechange (turtlecoin#351) * fix broken link (turtlecoin#350) https://chat.turtlecoin.lol -> http://chat.turtlecoin.lol * Typo (turtlecoin#352) * Update Default Build Instructions (turtlecoin#356) Updating directions to always inform new users to build from master. * updates cmake to support arm (turtlecoin#355) * Update multi_installer.sh (turtlecoin#357) * Update nightly.sh (turtlecoin#358) * Fix proof of work too weak on v0.6.4 and my fusion fuckup (turtlecoin#359) * Fix proof of work too weak on v0.6.4 * Fix fusion transactions occasionaly failing * Fix fusion with dust inputs being unsendable * Bring config param in line with others * Make walletd print out proper error when a wallet file specified doesnt exist (turtlecoin#360) * fix broken link https://chat.turtlecoin.lol -> http://chat.turtlecoin.lol * make walletd print a proper error when a wallet being opened dont exist instead of wrong wallet version: a) checks if -g is passed. if so, it doent print an error, because the wallet file being specified wouldn't exist b)It takes the name specified and appends a .wallet. if a wallet exists, tells them: maybe u meant xyz.wallet? c)if it doesnt exist at all; tells em to check ur spelling myb. coz it no exist. cant figure out a way to make it print in red. maybe later? anyways its the only thing being printed so i dont think it matters * fix error * Fix the size of unprepared transactions being undeterministic * This is overrated... we'll actually rip the code out later. RIP @crappyrules * Update .travis.yml Updating to grab the name change of walletd and include the LICENSE file in the resulting package * Speed up the block verification time Removing the divisions and replacing them by per-calculated values, Slightly reduces the time required to verify a block * Fixed merge mistakes * Fixing build targets for rename from walletd to service * Fixing typo * Update slow-hash.c * Fixing: Fatal error: boost::bad_any_cast: failed conversion using boost::any_cast * Further slow hash optimizations * Make outgoing transfers negative in csv export * typo: totalamount * Renamed walletd to service Walletd has been renamed to service * Update CMakeLists.txt Setting a few more flags here that may help with issue #228 * Updating the default checkpoints and enabling them by default * Rework integrated addresses to be more compact * byebye poolwallet if this is a surprise to you, just shut your shit down now. you played yourself. * Improve cmake output on readline not found * Handle non GNU Readline on Apple * Let's talk about convenience charges... * Adding nodeFee to splitTX * Improve status command, remove references to service * Update CMakeLists.txt * Style improvements for splitTX (turtlecoin#2) Thanks @ZedPea * Cleaning up after removing poolwallet, shuffling some libraries around, removing dead files, etc. * Update CryptoNoteCheckpoints.h * Update version.h.in
- Loading branch information
1 parent
3550e84
commit 4cc06d1
Showing
174 changed files
with
6,773 additions
and
9,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Search for the path containing library's headers | ||
find_path(Readline_ROOT_DIR | ||
NAMES include/readline/readline.h | ||
) | ||
|
||
# Search for include directory | ||
find_path(Readline_INCLUDE_DIR | ||
NAMES readline/readline.h | ||
HINTS ${Readline_ROOT_DIR}/include | ||
) | ||
|
||
# Search for library | ||
find_library(Readline_LIBRARY | ||
NAMES readline | ||
HINTS ${Readline_ROOT_DIR}/lib | ||
) | ||
|
||
# Conditionally set READLINE_FOUND value | ||
if(Readline_INCLUDE_DIR AND Readline_LIBRARY) | ||
set(READLINE_FOUND TRUE) | ||
else() | ||
FIND_LIBRARY(Readline_LIBRARY NAMES readline) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG Readline_INCLUDE_DIR Readline_LIBRARY ) | ||
|
||
MARK_AS_ADVANCED(Readline_INCLUDE_DIR Readline_LIBRARY) | ||
endif() | ||
|
||
# Apple uses the system readline library rather than GNU Readline, which doesn't | ||
# support the stuff we need. | ||
if (APPLE AND Readline_INCLUDE_DIR STREQUAL "/usr/include") | ||
# Unset readline found so it doesn't get cached, and we check again, e.g. | ||
# if they install the correct readline | ||
unset(READLINE_FOUND CACHE) | ||
|
||
# Also unset the two path variables, so it doesn't instantly find them | ||
# without re-searching | ||
unset(Readline_INCLUDE_DIR CACHE) | ||
unset(Readline_LIBRARY CACHE) | ||
|
||
message(FATAL_ERROR "Readline library found, but it is using the Apple version of readline rather than GNU Readline.\nTo fix this, run:\nbrew install readline; brew link --force readline\nThen, re-run cmake.\nAlternatively, run:\ncmake .. -DFORCE_READLINE=FALSE\nTo disable readline support") | ||
|
||
endif() | ||
|
||
|
||
# Hide these variables in cmake GUIs | ||
mark_as_advanced( | ||
Readline_ROOT_DIR | ||
Readline_INCLUDE_DIR | ||
Readline_LIBRARY | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
import json | ||
import requests | ||
|
||
topbuffer = 3 * 24 * 60 * 2 | ||
|
||
|
||
def lastknownblock(): | ||
try: | ||
with open(sys.argv[1], 'r') as cp: | ||
(block, hash) = list(cp)[-1].split(',') | ||
cp.close() | ||
return int(block) | ||
except: | ||
return 0 | ||
|
||
|
||
def height(): | ||
base_url = 'http://localhost:11898/getheight' | ||
resp = requests.get(base_url).json() | ||
if 'height' not in resp: | ||
print ('Unexpected response, make sure TurtleCoind is running', | ||
resp) | ||
sys.exit(-1) | ||
else: | ||
return resp['height'] | ||
|
||
|
||
def rpc(method, params={}): | ||
base_url = 'http://localhost:11898/json_rpc' | ||
payload = { | ||
'jsonrpc': '2.0', | ||
'id': 'block_info', | ||
'method': method, | ||
'params': params, | ||
} | ||
resp = requests.post(base_url, data=json.dumps(payload)).json() | ||
if 'result' not in resp: | ||
print ('Unexpected response, make sure Turtlecoind is running with block explorer enabled' | ||
, resp) | ||
sys.exit(-1) | ||
else: | ||
return resp['result'] | ||
|
||
|
||
def get_height(): | ||
resp = rpc('getblockcount') | ||
return resp['count'] | ||
|
||
|
||
def get_block_info(from_height): | ||
resp = rpc('f_blocks_list_json', {'height': from_height}) | ||
return resp['blocks'] | ||
|
||
|
||
stop_height = lastknownblock() + 1 | ||
|
||
current_height = height() - topbuffer | ||
all_blocks = [] | ||
while current_height > stop_height: | ||
try: | ||
blocks = get_block_info(current_height) | ||
for b in blocks: | ||
print '%(height)s,%(hash)s' % b | ||
all_blocks.append('%(height)s,%(hash)s' % b) | ||
current_height = b['height'] - 1 | ||
if current_height < stop_height: | ||
break | ||
except: | ||
print "Whoops... let's try that again" | ||
|
||
all_blocks.reverse() | ||
|
||
with open(sys.argv[1], 'a') as f: | ||
f.write('\n'.join(all_blocks)) | ||
if len(all_blocks) > 0: | ||
f.write('\n') |
Oops, something went wrong.