aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
* s/DOGE/DIS/gTomo Ueda2021-09-021-1/+1
|
* really s/Doge/Dis/g this timeTomo Ueda2021-09-023-11/+11
|
* really s/doge/dis/g this timeTomo Ueda2021-09-026-17/+17
|
* rpc: add feefilter to peers from getpeerinfoPatrick Lodder2021-08-141-0/+3
| | | | | | Exposes information about the feefilter the peer sets to us, so that we can make better informed decisions when a transaction does not get relayed.
* Initial back end framework to separate wallet and relay fees + dust.Michi Lumin2021-07-302-2/+2
|
* Update server.cppnformant2021-07-221-1/+1
| | | Changed RPC port from 8332 (BTC) to 22555 (Dogecoin)
* Add functionality to generate auxpow blocks in regtestMD Islam2021-05-252-18/+49
| | | | | | | | | This roughly reverts the work done here that disabled auxpow generation in regtest: https://github.com/dogecoin/dogecoin/pull/1431/files\#diff-ccc24453c13307f815879738d3bf00eec351417537fbf10dde1468180cacd2f1R127-R137 This is a pretty severe functionality change since auxpow is critical to Dogecoin and wallet integrators need to be able to parse the extra data in auxpow blocks. For future wallet integrators: Dogecoin follows similar schemes as Namecoin for the merged mining support and the spec is here: https://en.bitcoin.it/wiki/Merged_mining_specification pr review: GetHash -> GetPoWHash
* fixed listunspent rpc convert parametertnaka2021-02-221-0/+1
|
* Add query options to listunspent rpc callPedro Branco2021-02-221-0/+1
|
* Merge pull request #1655 from John-Gee/1.14.3-devMax K2021-02-141-4/+5
|\ | | | | Build on recent Linux
| * Fix for Boost 1.74John-Gee2021-02-021-4/+5
| |
* | Fixate BIP65 softfork heightsPatrick Lodder2021-02-131-14/+1
|/ | | | | | | | | - Re-introduce Params.BIP65Height - Fixate block 1854705 for testnet - Fixate block 3464751 for mainnet - Fixate block 1351 for regtest - Stop using IsSuperMajority() in validation for BIP65 - Simplify RPC SoftForkMajorityDesc
* [backport] [rpc] getblockchaininfo: add size_on_disk, prune_target_size, ↵Daniel Edgecumbe2020-07-241-10/+22
| | | | | | | | | | automatic_pruning Fix pruneheight help text. Move fPruneMode block to match output ordering with help text. Add functional tests for new fields in getblockchaininfo. Rebase-from: bitcoin#b7dfc6c4
* Fix RPC description of supermajority based forkslangerhans2019-07-141-1/+1
|
* Revert behaviour change in getauxblockRoss Nicoll2019-07-131-4/+4
| | | | Change getauxblock to respond with a "target" field instead of "_target".
* [rpc] Add initialblockdownload to getblockchaininfoJohn Newbery2019-04-141-0/+2
|
* Introduce basic Dogecoin brandingRoss Nicoll2019-03-256-32/+32
|
* Update RPC tests for Dogecoin (#1431)Ross Nicoll2018-09-191-5/+6
| | | | | | | | | * Make most of the RPC tests pass * Add AUXPoW rpc tests - Tests the auxpow rpc interface `getauxblock` - Tests consensus constraints for auxpow: - Minimum block height - Valid scrypt proof of work - Foreign chain ID
* [auxpow] Guarantee backward compatibility on getauxblockPatrick Lodder2018-09-191-1/+13
| | | | | Adds a wrapper around getauxblock to return boolean responses for getauxblock rather than bip22 responses.
* Change result from getauxblock to BIP22 validation stateRoss Nicoll2018-09-191-1/+1
|
* Change count type used by `gettxoutsetinfo` (#1415)Ross Nicoll2018-09-193-2/+14
| | | changing CAmount (is a int64_t) to arith_uint256 for nTotalAmount in CCoinsStats to prevent overflow
* Modify chain consensus parameters to be height aware (#1396)Ross Nicoll2018-09-193-11/+14
| | | | | | | | | * Modify chain consensus parameters to be height aware * Correct implementation of simplified rewards in parameters * Correct max money * Use base block version in IsSuperMajority() instead of full version * Correct mining of blocks in AuxPoW tests * Add in missing pre-AuxPoW consensus checks
* Change BIP65/66 enforcement to match Dogecoin (#1403)Ross Nicoll2018-09-191-1/+14
| | | | | | | | | | | | | | | | | | * Introduce first estimates at BIP lock-in blocks * Introduce Dogecoin BIP parameters * Re-introduce supermajority rules for BIP65 * Add BIP65 supermajority rules * Tighten v3 block constraints * Don't enforce coinbase in v2 blocks * Correct testnet majority params * Change to using base version when checking supermajority
* Sync mining code from Namecore to resolve unit test failures (#1385)Ross Nicoll2018-09-191-203/+120
|
* Merge AuxPoW support from NamecoreRoss Nicoll2018-09-192-4/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes are as below: Wrap CBlockHeader::nVersion into a new class (CBlockVersion). This allows to take care of interpreting the field into a base version, auxpow flag and the chain ID. Update getauxblock.py for new 'generate' RPC call. Add 'auxpow' to block JSON. Accept auxpow as PoW verification. Add unit tests for auxpow verification. Add check for memory-layout of CBlockVersion. Weaken auxpow chain ID checks for the testnet. Allow Params() to overrule when to check the auxpow chain ID and for legacy blocks. Use this to disable the checks on testnet. Introduce CPureBlockHeader. Split the block header part that is used by auxpow and the "real" block header (that uses auxpow) to resolve the cyclic dependency between the two. Differentiate between uint256 and arith_uint256. This change was done upstream, modify the auxpow code. Add missing lock in auxpow_tests. Fix REST header check for auxpow headers. Those can be longer, thus take that into account. Also perform the check actually on an auxpow header. Correctly set the coinbase for getauxblock results. Call IncrementExtraNonce in getauxblock so that the coinbase is actually initialised with the stuff it should be. (BIP30 block height and COINBASE_FLAGS.) Implement getauxblock plus regression test. Turn auxpow test into FIXTURE test. This allows using of the Params() calls. Move CMerkleTx code to auxpow.cpp. Otherwise we get linker errors when building without wallet. Fix rebase with BIP66. Update the code to handle BIP66's nVersion=3. Enforce that auxpow parent blocks have no auxpow block version. This is for compatibility with namecoind. See also https://github.com/namecoin/namecoin/pull/199. Move auxpow-related parameters to Consensus::Params.
* [doc] Add hint about getmempoolentry to getrawmempool help.Karl-Johan Alm2017-06-051-0/+1
| | | | | Github-Pull: #10310 Rebased-From: 3a0a5bc2341ea6a453306f6fe1c065b937294cfb
* Return correct error codes in setban().John Newbery2017-06-051-2/+2
| | | | | | | | | | | | | | | | The setban() RPC was returning misleading or incorrect error codes (for example RPC_CLIENT_NODE_ALREADY_ADDED when an invalid IP address was entered). This commit fixes those error codes: - RPC_CLIENT_INVALID_IP_OR_SUBNET should be returned if the client enters an invalid IP address or subnet. This commit also updates the test cases to explicitly test the error code. This commit also adds a testcase for trying to setban on an invalid subnet. Github-Pull: #9853 Rebased-From: a012087667edb35a36f25ae06b42b1644d80e649
* Return correct error codes in blockchain.cpp.John Newbery2017-06-051-6/+11
| | | | | | | | | | | | | | | | | RPCs in blockchain.cpp were returning misleading or incorrect error codes (for example getblock() returning RPC_INTERNAL_ERROR when the block had been pruned). This commit fixes those error codes: - RPC_INTERNAL_ERROR should not be returned for application-level errors, only for genuine internal errors such as corrupted data. - RPC_METHOD_NOT_FOUND should not be returned in response to a JSON request for an existing method. Those error codes have been replaced with RPC_MISC_ERROR or RPC_INVALID_PARAMETER as appropriate. Github-Pull: #9853 Rebased-From: c1190963b388590dc0a346bf625c7e84f69cee8d
* [rpc] rename disconnectnode argumentJohn Newbery2017-04-141-4/+4
| | | | | Github-Pull: #10204 Rebased-From: 883154cbcb306dcc6205fe349c7056ced1f6c5fc
* Check transaction count early in submitblock.Gregory Maxwell2017-04-041-0/+4
| | | | | | | | | | | | There is no point in even hashing a submitted block which doesn't have a coinbase transaction. This also results in more useful error reporting on corrupted input. Thanks to rawodb for the bug report. Github-Pull: #10146 Rebased-From: 4f15ea102d15eb237b63464725508dc509e98819
* [rpc] Remove auth cookie on shutdownpracticalswift2017-04-031-0/+1
| | | | | | | Accidentally removed in 40b556d3742a1f65d67e2d4c760d0b13fe8be5b7 Github-Pull: #10139 Rebased-From: 4b87973c32bcaa5fa7509793e4f0c4f4f981f21b
* rpc: Rename first named arg of createrawtransactionMarcoFalke2017-03-272-4/+4
| | | | | Github-Pull: #10084 Rebased-From: fa558532192ca0bb519f811ee14df6037413b89f
* Trivial: Fix typo in help getrawtransaction RPCJames Evans2017-03-271-1/+1
| | | | | Github-Pull: #10037 Rebased-From: 05a9f22358be27c08f7e164d05eeeaf0386073cb
* Don't require segwit in getblocktemplate for segwit signalling or miningSuhas Daftuar2017-03-161-4/+14
| | | | | | | | | Segwit's version bit will be signalled for all invocations of CreateNewBlock, and not specifying segwit only will cause CreateNewBlock to skip transactions with witness from being selected. Github-Pull: #9955 Rebased-From: abe7b3d3abe10e3554b770f40824174b3b217490
* Change bitcoin address in RPC helpaddress to an invalid address, so people ↵Marijn Stollenga2017-02-281-4/+4
| | | | | | | don't accidentally send coins there (like I did). Github-Pull: #9865 Rebased-From: 83ac719d34f98cc1d3efa6ece2b95145bcde8775
* [Trivial] Remove incorrect help message from gettxoutproof()John Newbery2017-02-221-1/+0
| | | | | Github-Pull: #9711 Rebased-From: 9949ebfa6a548260858df429f4d0e716e0a26065
* Bugfix: RPC/Mining: GBT should return 1 MB sizelimit before segwit activatesLuke Dashjr2017-02-201-2/+6
| | | | | Github-Pull: #9619 Rebased-From: 9fc7f0bce94f1cea0239b1543227f22a3f3b9274
* boost: remove iostreams includesCory Fields2017-02-171-2/+0
| | | | | | | They're unused and produce nasty deprecation warnings Github-Pull: #9786 Rebased-From: 3301587dc5c7937141282f3799592d1e398495fb
* Add two hour buffer to manual pruningAlex Morcos2017-02-161-2/+4
|
* Use importmulti timestamp when importing watch only keysRussell Yanofsky2017-02-101-0/+3
| | | | | | | | | | | | | When importing a watch-only address over importmulti with a specific timestamp, the wallet's nTimeFirstKey is currently set to 1. After this change, the provided timestamp will be used and stored as metadata associated with watch-only key. This can improve wallet performance because it can avoid the need to scan the entire blockchain for watch only addresses when timestamps are provided. Also adds timestamp to validateaddress return value (needed for tests). Fixes #9034.
* Add test to check new importmulti "now" valueRussell Yanofsky2017-02-101-4/+11
| | | | | Easiest way to test this was to expose the timestamp via the validateaddress RPC (which was already looking up and returning key metadata).
* Better handle invalid parameters to signrawtransactionMatt Corallo2017-02-021-1/+3
| | | | | | This silently skips trying to merge signatures from inputs which do not exist from transactions provided to signrawtransaction, instead of hitting an assert.
* Merge #9556: Remove redundant semicolonsWladimir J. van der Laan2017-02-021-2/+2
|\ | | | | | | 8fc6989 Remove redundant semicolons (practicalswift)
| * Remove redundant semicolonspracticalswift2017-01-141-2/+2
| |
* | Merge #9615: Wallet incremental feeWladimir J. van der Laan2017-01-301-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4b189c1 Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos) 0c0c63f Introduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos) e8021ec Use CWallet::GetMinimumFee in bumpfee (Alex Morcos) ae9719a Refactor GetMinimumFee to give option of providing targetFee (Alex Morcos) fe8e8ef [rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos) 6b331e6 Fix to have miner test aware of new separate block min tx fee (Alex Morcos) de6400d Fix missing use of dustRelayFee (Alex Morcos) 5b15870 Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
| * | [rpc] Add incremental relay fee to getnetworkinfoAlex Morcos2017-01-201-0/+3
| | |
* | | [trivial] Fix typos in commentspracticalswift2017-01-271-1/+1
| | |
* | | Merge #9606: net: Consistently use GetTimeMicros() for inactivity checksWladimir J. van der Laan2017-01-261-11/+5
|\ \ \ | |/ / |/| | | | | 99464bc net: Consistently use GetTimeMicros() for inactivity checks (Suhas Daftuar)
| * | net: Consistently use GetTimeMicros() for inactivity checksSuhas Daftuar2017-01-251-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of mocktime in test logic means that comparisons between GetTime() and GetTimeMicros()/1000000 are unreliable since the former can use mocktime values while the latter always gets the system clock; this changes the networking code's inactivity checks to consistently use the system clock for inactivity comparisons. Also remove some hacks from setmocktime() that are no longer needed, now that we're using the system clock for nLastSend and nLastRecv.
* | | Merge #8456: [RPC] Simplified bumpfee command.Wladimir J. van der Laan2017-01-193-5/+15
|\ \ \ | |/ / |/| | | | | | | | | | | cc0243a [RPC] bumpfee (mrbandrews) 52dde66 [wallet] Add include_unsafe argument to listunspent RPC (Russell Yanofsky) 766e8a4 [wallet] Add IsAllFromMe: true if all inputs are from wallet (Suhas Daftuar)