Cuckoo miner fixes and configurable coinbase maturity (#154)

* cuckoo miner update+coinbase maturity
* set mining parameter mode on immature coinbase test
This commit is contained in:
Yeastplume
2017-10-04 18:44:22 +01:00
committed by Ignotus Peverell
parent 4e49b85b82
commit e68a6a69bb
7 changed files with 37 additions and 13 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use core::{core, consensus};
use core::{core, consensus, global};
use chain;
use secp::pedersen;
@@ -60,7 +60,7 @@ impl Output {
x if x.contains(core::transaction::COINBASE_OUTPUT) => {
(
OutputType::Coinbase,
block_header.height + consensus::COINBASE_MATURITY,
block_header.height + global::coinbase_maturity(),
)
}
_ => (OutputType::Transaction, 0),