Commit Graph

44 Commits

Author SHA1 Message Date
jl777
0454333ff8 Tristate KOMODO_NSPV 2019-07-30 05:11:57 -11:00
jl777
d2f4ef0519 Merge pull request #1622 from DeckerSU/patch-createrawtransaction
createrawtransaction enchancement
2019-07-17 19:03:35 -11:00
DeckerSU
2b799143f8 createrawtransaction enchancement
- allowing create OP_RETURN vouts (field "data" in "outputs" json)
- allowing using script (hex), in "outputs" (for example, you can use any P2PK, P2PKH or P2SH script as destination)
- advanced duplicates checking (users can't use same destination in various forms, for example, you can't make one vout as address and second vout, same address, but coded with P2PK script)
- allowing to bypass duplicates check for notaries (for example, to manually create splitfunds txes, using daemon RPC only), for common users it's forbidden

Useful usage:

Don't forget that you can create raw transaction with empty vins, like

createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777}"

and then fund it (with vins) using fundrawtransaction.

Duplicates testing vectors (passed):

createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777,\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.01}"
createrawtransaction "[]" "{\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.777,\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"data\":\"010203\",\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777,\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.02}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01,\"data\":\"00010203\"}"
2019-07-17 20:33:51 +03:00
jl777
ea155ad656 Merge branch 'FSM' into jl777 2019-07-08 17:56:27 -11:00
jl777
d3730db5d8 Prevent crash when displaying interest 2019-07-06 07:52:38 -11:00
jl777
3bf999989d ) 2019-07-06 00:26:28 -11:00
jl777
7c6f471173 Allow "inv" to be sent from superlite client 2019-07-05 06:57:09 -11:00
jl777
e0489802a5 -pindex 2019-07-05 04:59:44 -11:00
jl777
81d0e44732 Guards for nSPV in decode/send raw transaction 2019-07-05 04:58:30 -11:00
jl777
1841071a12 Merge pull request #1581 from Mixa84/FSM
Initial PegsCC implementation
2019-07-03 22:36:13 -11:00
Mihailo Milenkovic
1f013df156 Initial PegsCC implementation (#27) 2019-07-04 11:23:55 +02:00
Alrighttt
896b6fee53 fix createrawtransaction curl example 2019-06-30 15:38:27 +02:00
blackjok3r
eaca3f2137 fix 2019-05-26 14:38:31 +08:00
blackjok3r
61283f29ac last_notarized_height to getrawtransaction 2019-05-26 14:35:59 +08:00
dimxy
a0aaff1371 fix unmarshal source symbol from rawproof 2019-04-29 12:55:17 +05:00
dimxy
d87f6a158a rawtransaction corr importproof type 2019-04-19 14:41:47 +05:00
blackjok3r
a543b675f6 Merge branch 'FSM' of https://github.com/jl777/komodo 2019-01-10 02:25:59 +08:00
blackjok3r
0b24307e2b Add export description to burn TX on explorer. 2019-01-08 14:33:27 +08:00
blackjok3r
6794cfc0cc add IMP-<source>-<txid> to export address for explorer. 2019-01-07 23:04:54 +08:00
blackjok3r
58cb0e8ea2 use unused address variable for source, to get source chain to explorer. 2019-01-07 22:36:58 +08:00
blackjok3r
d53a4a9e5b push changes for getrawtransaction 2019-01-07 18:11:51 +08:00
Jonathan "Duke" Leto
f24ae214d2 Add dpowconfs to z_listunspent + listreceivedbyaddress and other small fixes 2019-01-05 19:24:14 +01:00
blackjok3r
e93fd95815 Merge branch 'FSM' of https://github.com/jl777/komodo into ac_import 2019-01-02 23:29:52 +08:00
jl777
0ea9ae3c05 Update copyright to 2019 2018-12-31 21:41:05 -11:00
blackjok3r
7349a49641 Merge branch 'FSM' of https://github.com/jl777/komodo
fix
2018-12-13 12:40:53 +08:00
jl777
27606f3e0b Fix typow == 0 2018-12-10 09:44:50 -11:00
jl777
a2ea9de06f Revert txfee changes 2018-12-10 05:45:59 -11:00
jl777
5ea3f23ac9 Update three 2018-12-09 08:41:08 -11:00
blackjok3r
697eddcc79 Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM
merge
2018-11-29 23:22:32 +08:00
miketout
6e2a502b0e Merge of Komodo and Verus Technologies Post Sapling, Pre-VerusPoP with Support for Time locked coinbases 2018-11-14 16:40:10 -08:00
miketout
d565e7b73c Eliminate mapBlockIndex risk of nulls across VRSC 2018-10-14 11:59:13 -07:00
miketout
3bfa5e2264 Latest Zcash updates and more CC for N@S 2018-10-05 00:26:06 -07:00
miketout
4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
Simon
18f8abb62d Closes #3534. Do not use APPROX_RELEASE_HEIGHT to get consensus branch
id when in regtest mode.

Co-authored-by: Larry Ruane <larryruane@gmail.com>
2018-09-21 11:10:15 -07:00
miketout
644c7445ec Latest Zcash updates 2018-09-20 13:32:57 -07:00
Homu
36243f41f1 Auto merge of #3520 - Eirik0:3327-sign-offline, r=bitcartel
Fix signing raw transactions with unsynced offline nodes

This PR address the issue in two different ways:

- In `signrawtransaction` we determine the consensus branch ID (which we then later use to construct the transaction) using the chain height. We now also consider the `APPROX_RELEASE_HEIGHT` as this is a better estimation than 0 for the height of the chain if we are unsynced. (This in and of itself solves the Overwinter signing issue).
- We have added an additional parameter to `signrawtransaction` to allow manually overriding the consensus branch ID that zcashd determines we are on. This allows users to work around corner cases where the first strategy is still insufficient.

Closes #3327.
2018-09-19 15:02:52 -07:00
miketout
9feb4b9e08 Major updates integration from all upstreams 2018-09-18 14:33:53 -07:00
Simon
9ba7479de1 Add Sapling fields to JSON RPC output using TxToJSON. 2018-09-17 09:44:43 -07:00
Eirik Ogilvie-Wigley
36a490677c Allow passing branchId when calling signrawtransaction 2018-09-17 10:27:39 -06:00
Eirik Ogilvie-Wigley
40b9527301 Incorporate APPROX_RELEASE_HEIGHT when determining what consensus branch to sign with 2018-09-17 10:27:39 -06:00
Simon
87d55e1322 Clean up help messages for RPC createrawtransaction.
Also return error if expiryheight used when Overwinter not active.
2018-07-29 20:57:33 -07:00
Jay Graber
76277ad8af Take expiryheight as param to createrawtransaction 2018-07-29 19:13:54 -07:00
Wladimir J. van der Laan
a9496b08b6 rpc: Register calls where they are defined
Split out methods to every module, apart from 'help' and 'stop' which
are implemented in rpcserver.cpp itself.

- This makes it easier to add or remove RPC commands - no longer everything that includes
    rpcserver.h has to be rebuilt when there's a change there.
- Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions.
- Removes most of the bitcoin-specific code from rpcserver.cpp and .h.

Continues #7307 for the non-wallet.
2018-07-18 11:07:18 -06:00
Daniel Cousens
4519a766b6 move rpc* to rpc/ 2018-07-18 11:07:16 -06:00