aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-python-dead-code.sh
Commit message (Collapse)AuthorAgeFilesLines
* Pure python ECPieter Wuille2019-06-211-1/+1
| | | | | | | | This removes the dependency on OpenSSL for the interaction tests, by providing a pure-Python toy implementation of secp256k1. Github-Pull: #15826 Rebased-From: 8c7b9324ca3f3ffb178bea56a96ea23f7e0383cb
* tests: add utility to easily profile node performance with perfJames O'Beirne2019-01-221-1/+1
| | | | | | | | Introduces `TestNode.profile_with_perf()` context manager which samples node execution to produce profiling data. Also introduces a test framework flag, `--perf`, which will run perf on all nodes for the duration of a given test.
* Merge #14457: test: add invalid tx templates for use in functional testsWladimir J. van der Laan2019-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 59e387705c7e55ec40400301346354fa2d0c613f test: add invalid tx templates for use in functional tests (James O'Beirne) Pull request description: This change adds a list of `CTransaction`-generating templates which each correspond to a specific type of invalid transaction. We then use this list to test for a wider variety of invalid tx types in `p2p_invalid_tx.py` and `feature_block.py`. Consolidating all invalid tx types will allow us to more easily cover all tx reject cases from a variety of tests without repeating ourselves. Validation logic doesn't differ much between mempool and block acceptance, but there *is* a difference and we should be sure we're testing both comprehensively. Right now, I've only added templates covering the tx reject types listed below but if this approach seems worthwhile I will expand the list to be fully comprehensive. ``` bad-txns-in-belowout bad-txns-inputs-duplicate bad-txns-too-many-sigops bad-txns-vin-empty bad-txns-vout-empty bad-txns-vout-negative ``` Tree-SHA512: 05407f4a953fbd7c44c08bb49bb989cefd39a2b05ea00f5b3c92197a3f05e1b302f789e33832445734220e1c333d133aba385740b77b84139b170c583471ce20
| * test: add invalid tx templates for use in functional testsJames O'Beirne2018-11-271-1/+1
| | | | | | | | | | Add templates for easily constructing different kinds of invalid transactions and use them in feature_block and p2p_invalid_tx.
* | Scripts and tools & Docs: Used #!/usr/bin/env bash instead of obsolete ↵vim882018-12-021-1/+1
|/ | | | #!/bin/bash, added linting for .sh files shebang and updated the Developer Notes.
* tests: Add Python dead code linter (vulture)practicalswift2018-11-071-0/+19