This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from test_framework.util import ( | |
assert_equal, | |
assert_approx | |
) | |
from test_framework.test_framework import BitcoinTestFramework | |
class SimpleFunctionalTest(BitcoinTestFramework): | |
def add_options(self, parser): | |
self.add_wallet_options(parser) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bitcoin Core | |
bitcoin_func_test() { | |
local args=() | |
for arg in "$@" | |
do | |
args+=(test/functional/${arg}*) | |
done | |
test/functional/test_runner.py "${args[@]}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code has not been professionally audited. | |
// Use at own risk. | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to delete the local branches for which the remote tracking branches have been pruned. | |
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d | |
# To delete all local Git branches except the master branch | |
git branch | grep -v "master" | xargs git branch -d |