Giter VIP home page Giter VIP logo

pktannfilter's Introduction

pktannfilter

This program filters the output (stdout and stderr) of the packetcrypt_rs miner program. It removes all WARN lines which contains the strings Error uploading ann batch and Failed to make request to.

It also adds the pool names to the goodrate output and uses colors for it.

how to compile and run the program

First install Rust, e.g. from https://rustup.rs. Then you can build the program with cargo build --release.

For starting the filter, specify the original mining program as the first program argument, and then the other parameters for the mining program itself as usual. For example:

./target/release/pktannfilter ../packetcrypt_rs/target/release/packetcrypt ann 'http://pool.pktpool.io' 'http://pool.pkt.world'  --paymentaddr pkt1xxx`

(instead of pkt1xxx, use your wallet address)

The shell script miner-simulation outputs some simulated miner lines on stderr to demonstrate how the filter works. If you run the script miner-simulation, you'll see the unmodified output. If you start it with the pktannfilter (you can use the test script for it), you can see how the output is modified.

Example output of the test script:

example

On Mac, the default Terminal program has no bright yellow color, but because of the default white background, the darker yellow color is better anyway. It looks like this:

example

With a modern terminal like Alacritty, it looks the same as on Linux. On Windows, it looks like on Linux with the standard cmd.exe Command Prompt, and in PowerShell.

pktannfilter's People

Contributors

frank-buss avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.