Commit graph

6201 commits

Author SHA1 Message Date
Doyle
591fda78f0 Store Service Node State to DB as Blob (#125)
* store service node state as a blob in db

* add height to service node list storage
2018-08-08 16:31:20 +10:00
jcktm
ab91940745 simplewallet: changed help message for staking commands 2018-08-08 16:31:20 +10:00
jcktm
21708b0944 config: change network ID for testnet 2018-08-08 16:31:20 +10:00
jcktm
145d7b98ea blockchain: added values for v9 hardfork 2018-08-08 16:31:20 +10:00
jcktm
5ff070f53f testnet: updated genesis block for new testnet 2018-08-08 16:31:20 +10:00
jcktm
453c68130f simplewallet: add automatic address scanning to service node registration 2018-08-07 17:02:15 +10:00
jcktm
de956236e7 simplewallet: add address to stake command 2018-08-07 17:02:13 +10:00
Maxim Shishmarev
a78174332f fixed data for two tests (difficulty, hash) to make them pass 2018-08-07 17:01:39 +10:00
jcktm
7badc30e97 service nodes: added service node operator cut to registration 2018-08-07 17:01:39 +10:00
jcktm
62f86e837d constants: add some static asserts, and replace magic numbers with constants 2018-08-07 17:01:39 +10:00
jcktm
17152e4329 Fix bug in service node payout address duplication check 2018-08-07 17:01:39 +10:00
jcktm
0cb93a5b6f service node list: changed contributor map to vector 2018-08-07 17:01:39 +10:00
jcktm
cc48990cdc new and improved contribution system 2018-08-07 17:01:39 +10:00
jcktm
87efe82efa updated staking requirement 2018-08-07 17:01:39 +10:00
jcktm
217b9d8a65 added boost serialization of output unlock times to transaction and transaction_prefix 2018-08-06 10:25:29 +10:00
jcktm
b140ac7708 revert core rpc version change 2018-08-05 16:49:52 +10:00
jcktm
b1f533be58 tx unlock time: adjusting version checks for transactions 2018-08-05 16:19:07 +10:00
jcktm
54dece9691 fix change address and balance display for per-output unlock times 2018-08-05 03:08:51 +00:00
jcktm
8c5a5792cb added tx secret key field to tx extra 2018-08-03 18:34:49 +10:00
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
471f487203 Add gitlab config for CD/CI (linux only) (#99)
* add gitlab config file for CD/CI

* formatting
2018-07-17 15:53:52 +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