Skip to content

Instantly share code, notes, and snippets.

@dantudor
dantudor / NavNetParams.java
Created February 14, 2018 09:20
NavNetParams
public class NavNetParams extends AbstractBitcoinNetParams {
public static final int MAINNET_MAJORITY_WINDOW = 1000;
public static final int MAINNET_MAJORITY_REJECT_BLOCK_OUTDATED = 950;
public static final int MAINNET_MAJORITY_ENFORCE_BLOCK_UPGRADE = 750;
private static NavNetParams instance;
public NavNetParams() {
this.id = "main";
this.targetTimespan = 750;
@dantudor
dantudor / gist:4594469
Last active April 28, 2017 21:28
Behat Tests in PHPUnit with Symfony 2.1
<?php
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Behat\Behat\Console\BehatApplication;
class BehatTest extends WebTestCase
{
/**