Commit graph

4329 commits

Author SHA1 Message Date
jcktm
b81214ec6e wallet2: added staking transactions to create_transactions_2 2018-08-03 16:52:44 +10:00
jcktm
d318cd702e service node list: added initial contribution field to prepare registration and registration arg parsing 2018-08-03 15:17:15 +10:00
jcktm
6e215675a1 simplewallet: allow amount for register and stake commands 2018-08-03 14:59:40 +10:00
jcktm
ab39443404 blockchain: changed testnet staking requirement to 100 2018-08-03 14:48:43 +10:00
Doyle T
5435e3327e Add RPC call for getting snode register command 2018-08-03 13:52:09 +10:00
jcktm
bffd7c2d34
Per output unlock time rebased (#114)
* add per-output unlock time field to transaction class

* get output unlock time (and relevant const fixes)

* move output unlocked check to separate function

* tx unlocked -> output unlocked in Blockchain

* per output unlock in tx creation; needs fork rules and testing

* per output unlock in tx prefix so it is signed...

also fix a couple typos/goofs

* wallet: check if using per output unlock time

* add rules.h and rules.cpp.  git woopsie.

* update test for BlockchainDB changes

* Change tx v3 deregister to be a bool in tx header

* service_node_list: handle per output unlock times in contribution txs

* transaction: added verification of unlock_times.size()
2018-08-03 11:39:28 +10:00
jcktm
cce04efb28 service_node_list: fixed initialization typo 2018-08-03 11:34:41 +10:00
jcktm
b05381ad8a blockchain: phase out version 1 txs from hard fork 9 2018-08-03 10:55:37 +10:00
jcktm
71ca8a8fc9 tvc: added missing auto val init for tvc 2018-08-03 10:55:37 +10:00
Doyle
c42287f7e7
Fix new[]/delete[] warning on OSX, incorrect int append to string (#113) 2018-08-02 19:42:23 +10:00
Doyle
dff75e8265
Make IEEE754 static assert be C++11 compliant (#112) 2018-08-02 19:00:40 +10:00
jcktm
ace26fc0cd quorum_cop: added quorum cop and service node keys to lokid
Submit deregistration autonomously, prune uptime_proofs

Move pruner to relayer, fix inf. loop, quorum participation bool return

find_if, fix reorg logic, make 2hrs check a variable

Add iterator assign on erase, adjust detached check

qacop: review iteration, changed warnings and std::find call

Accept proofs excluding the added time buffer
2018-08-02 18:58:19 +10:00
jcktm
9309f8a434 loki version of floating point exp2 and round, added static asserts for is_iec559 2018-08-02 17:25:26 +10:00
jcktm
25a424e696 service node registration: changed block reward from -1 to inf; misc bugfix, refactor 2018-07-31 15:18:37 +10:00
jcktm
dcf1cc54d9 pooled staking: renamed contributor cut to portions 2018-07-31 15:18:37 +10:00
jcktm
aab30bb9e0 service node registration: misc bugfixes and pooled registration contributions 2018-07-31 15:18:37 +10:00
jcktm
41103edbcd service node registration: add signatures from service node pubkey to registration 2018-07-28 10:49:56 +10:00
Doyle T
b43c207462 Check that inputs/outputs size is 0 for deregister 2018-07-25 13:11:56 +10:00
sachaaaaa
4349bc43c4 Remove max_outs argument from construct_miner_tx 2018-07-23 11:12:09 +10:00
sachaaaaa
dc7323ff34 Fix designated initializers + add CD/CI badge (#100)
* add gitlab config file for CD/CI

* formatting

* Update readme to display CI badge

* Replace designated initializers with aggregate initializers

* CD/CI for mac

* use git fetch for cli instead of clone

* CD/CI for windows
2018-07-20 15:16:12 +10:00
jcktm
1834f61c39 Merge branch 'master' into dev 2018-07-20 14:24:35 +10:00
jcktm
003f0709b8 service_node_list: add multiple stakers, reward shares, etc 2018-07-20 14:16:26 +10:00
Doyle
fb66b7e00b Service Node Deregister Part 5 (#89)
* Retrieve quorum list from height, reviewed

* Setup data structures for de/register TX

* Submit and validate partial/full deregisters

* Add P2P relaying of partial deregistration votes

* Code review adjustments for deregistration part 1

 - Fix check_tx_semantic
 - Remove signature_pod as votes are now stored as blobs. Serialization
   overrides don't intefere with crypto::signature anymore.

* deregistration_vote_pool - changed sign/verify interface and removed repeated code

* Misc review, fix sign/verify api, vote threshold

* Deregister/tx edge case handling for combinatoric votes

* core, service_node_list: separated address from service node pubkey

* Retrieve quorum list from height, reviewed

* Setup data structures for de/register TX

* Submit and validate partial/full deregisters

* Add P2P relaying of partial deregistration votes

* Code review adjustments for deregistration part 1

 - Fix check_tx_semantic
 - Remove signature_pod as votes are now stored as blobs. Serialization
   overrides don't intefere with crypto::signature anymore.

* deregistration_vote_pool - changed sign/verify interface and removed repeated code

* Misc review, fix sign/verify api, vote threshold

* Deregister/tx edge case handling for combinatoric votes

* Store service node lists for the duration of deregister lifetimes

* Quorum min/max bug, sort node list, fix node to test list

* Change quorum to store acc pub address, fix oob bug

* Code review for expiring votes, acc keys to pub_key, improve err msgs

* Add early out for is_deregistration_tx and protect against quorum changes

* Remove debug code, fix segfault

* Remove irrelevant check for tx v3 in blockchain, fix >= height for pruning quorum states

Incorrect assumption that a transaction can be kept in the chain if it could
eventually become invalid, because if it were the chain would be split and
eventually these transaction would be dropped. But also that we should not
override the pre-existing logic which handles this case anyway.
2018-07-18 12:42:47 +10:00
jcktm
dcd5ff7284 block_reward: changed block reward to new emission curve 2018-07-17 15:55:01 +10:00
sachaaaaa
114b48d08d constify get_transfers 2018-07-13 22:34:45 +10:00
sachaaaaa
26adddf884 Add new command "export_transfers" to save transfers to csv 2018-07-13 22:34:45 +10:00
jcktm
89240e87b4 core, service_node_list: separated address from service node pubkey 2018-07-12 22:36:35 +10:00
jcktm
a71c049a03 Merge branch 'master' into dev 2018-07-11 16:15:59 +10:00
moneromooo-monero
5992cc1a87 wallet2: ensure outputs are processed only once
This should be proof against any way one might get to multiple
processing, such as generating the same derivation from the
same pubkey, etc
2018-07-10 13:29:08 +10:00
Jason Rhinelander
15f48b1958 Fix double-counting of ins/outs on web wallet transactions
Transactions from the web wallet could have a duplicated public key,
which caused the Monero wallet to double-count ins and outs.

Fixed by applying upstream patch (Monero PR #3985).
2018-07-06 10:29:44 +10:00
jcktm
82c085917d Merge branch 'master' into dev 2018-07-03 11:35:41 +10:00
jcktm
de7235e146 Revert "blockchain_db - remove fixup"
This reverts (one line of) commit cc0ed9df90.
2018-07-03 11:30:15 +10:00
jcktm
cc0ed9df90 blockchain_db - remove fixup 2018-07-02 10:14:48 +10:00
jcktm
8a92407f5f
servicenodes: Added service node list 2018-06-29 14:47:00 +10:00
jcktm
16ac6e77cc
Merge pull request #75 from jcktm/loki-cli-cold-storage-balance
simple-wallet-cli: warnings about missing key images in watchonly wallet
2018-06-15 15:49:49 +10:00
jcktm
b3040e1475 Merge remote-tracking branch 'doyle/FixUnitTests' into dev 2018-06-13 16:36:47 +10:00
jcktm
f0740b9a5e Merge remote-tracking branch 'monero/master' into dev 2018-06-08 16:40:07 +10:00
luigi1111
03b4cca6c2
Merge pull request #3910
f2cb56a protocol: drop (and increase fails) if most blocks hashes are invalid (moneromooo-monero)
2018-06-07 12:24:02 -05:00
luigi1111
5bfe03804c
Merge pull request #3892
d344736 rpc: convert distribution to cumulative after caching (moneromooo-monero)
2018-06-07 12:22:04 -05:00
luigi1111
8a1f0d7d13
Merge pull request #3940
f24cbc5 blockchain: fix deadlock with the difficulty cache (moneromooo-monero)
2018-06-07 12:19:43 -05:00
luigi1111
48fcf76be9
Merge pull request #3911
f0322a0 blockchain: demote a hash-of-hashes validation warning to debug (moneromooo-monero)
2018-06-07 12:17:06 -05:00
luigi1111
e1a940806a
Merge pull request #3899
ab87e7f rpc: the cache is still for non cumulative on that branch (moneromooo-monero)
2018-06-07 12:15:13 -05:00
luigi1111
1af890287b
Merge pull request #3890
f80b157 wallet2: don't ask for pruned txes yet, we still parse the entire tx (moneromooo-monero)
2018-06-07 12:12:28 -05:00
moneromooo-monero
f24cbc5245
blockchain: fix deadlock with the difficulty cache 2018-06-06 10:37:51 +01:00
moneromooo-monero
f2cb56a2eb
protocol: drop (and increase fails) if most blocks hashes are invalid 2018-06-03 17:34:08 +01:00
moneromooo-monero
f0322a083a
blockchain: demote a hash-of-hashes validation warning to debug
This data comes from untrusted peers, and validation failures
are therefore normal.
2018-06-02 23:48:12 +01:00
moneromooo-monero
ab87e7fdae
rpc: the cache is still for non cumulative on that branch 2018-06-01 09:05:47 +01:00
luigi1111
503d2693fd
Merge pull request #3640
f36132a wallet cli/rpc: terminate execution with code 0 when --help or --version is given (stoffu)
2018-05-31 14:44:54 -05:00
luigi1111
3ee6a1b706
Merge pull request #3635
c1bda09 wallet_rpc_server: add a get_version RPC (moneromooo-monero)
2018-05-31 14:43:18 -05:00
luigi1111
b6eb7484d1
Merge pull request #3592
90a16b1 crypto: fix initialization order issue with random mutex (moneromooo-monero)
6a61f52 unit_tests: add ringdb unit tests (moneromooo-monero)
2018-05-31 14:41:17 -05:00