@dashevo/dashcore-lib
Advanced tools
Comparing version 0.16.8 to 0.16.9
@@ -178,3 +178,9 @@ # Transaction | ||
## Simple Transaction | ||
Since v0.13, simple transactions (having no more than 4 inputs), are entitled to an auto Instant Send upgrade (if mempool size is less than 10% full). | ||
A method `isSimpleTransaction()` will simplify that verification for you. | ||
## Upcoming changes | ||
We're debating an API for Merge Avoidance, CoinJoin, Smart contracts, CoinSwap, and Stealth Addresses. We're expecting to have all of them by some time in 2015. Payment channel creation is available in the [dashcore-channel](https://github.com/dashevo/dashcore-channel) module. |
@@ -67,2 +67,3 @@ /* eslint-disable */ | ||
var SPECIAL_TRANSACTION_ACTIVATION_VERSION = 3; | ||
var SIMPLE_TRANSACTIONS_MAX_INPUTS = 4; | ||
var DEFAULT_NLOCKTIME = 0; | ||
@@ -1305,2 +1306,11 @@ var MAX_BLOCK_SIZE = 1000000; | ||
/** | ||
* Returns true if this transaction is qualified to be a simple transaction to the network (<= 4 inputs). | ||
* @returns {boolean} | ||
*/ | ||
Transaction.prototype.isSimpleTransaction = function() { | ||
return this.inputs.length <= SIMPLE_TRANSACTIONS_MAX_INPUTS; | ||
}; | ||
/* DIP2 special transaction methods */ | ||
@@ -1307,0 +1317,0 @@ |
{ | ||
"name": "@dashevo/dashcore-lib", | ||
"version": "0.16.8", | ||
"version": "0.16.9", | ||
"description": "A pure and powerful JavaScript Dash library.", | ||
@@ -5,0 +5,0 @@ "author": "Dash Core Group, Inc. <dev@dash.org>", |
@@ -87,2 +87,3 @@ # Dashcore Library | ||
* [Hierarchically-derived Private and Public Keys](docs/hierarchical.md) | ||
* [Mnemonic](docs/mnemonic.md) | ||
* [Networks](docs/networks.md) | ||
@@ -89,0 +90,0 @@ * [PrivateKey](docs/privatekey.md) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6023447
209
100262
123