GithubHelp home page GithubHelp logo

rbnb-pow-mint's Introduction

rbnb-pow-mint-tool

install

git clone 
go build 

Installation-free: run with docker

cd to project folder with dockerfile

docker build -t rbnb-pow-mint .

Optional: Run the container with limited computational resource.

docker run -it -m 50g --cpus=20 rbnb-pow-mint

usage

  1. Configure the .env file.
  2. When each wallet reaches the specified limit, it will automatically generate a new wallet to continue mining.
  3. The wallet private keys are saved in the wallet.json directory.

rbnb-pow-mint's People

Contributors

nullpointerw avatar eldermedic avatar

Stargazers

sihai avatar  avatar lwsh123k avatar  avatar  avatar  avatar  avatar  avatar QuantumLeap avatar  avatar  avatar github-plus avatar 阿里咕噜啾哟嘿 avatar  avatar Srain avatar

Watchers

 avatar

rbnb-pow-mint's Issues

是否可以地址和难度直接读取当前目录下的配置文件,每次手工输入太麻烦了。

func init() {
Challenge = "72424e4200000000000000000000000000000000000000000000000000000000"
log.SetFormatter(&log.TextFormatter{TimestampFormat: "15:04:05", FullTimestamp: true})

// 检查是否存在 config.txt 文件
configFilePath := filepath.Join(".", "config.txt")
configFile, err := os.Open(configFilePath)
if err == nil {
	// 文件存在,读取其中的地址和难度参数
	scanner := bufio.NewScanner(configFile)
	scanner.Scan()
	Address = scanner.Text()
	scanner.Scan()
	Prefix = scanner.Text()
	configFile.Close()
} else {
	// 文件不存在,提示用户输入地址和难度参数,并写入 config.txt 文件
	fmt.Print("请输入地址:")
	_, err := fmt.Scanln(&Address)
	if err != nil {
		return
	}
	Address = strings.ToLower(strings.TrimPrefix(Address, "0x"))
	HexAddress = "0x" + Address
	fmt.Print("请输入难度:")
	_, err = fmt.Scanln(&Prefix)
	if err != nil {
		return
	}
	// 将地址和难度参数写入 config.txt 文件
	configFile, err := os.Create(configFilePath)
	if err != nil {
		fmt.Println("无法创建 config.txt 文件:", err)
		return
	}
	defer configFile.Close()
	configFile.WriteString("0x" + Address + "\n" + Prefix)
}

HttpClient = &http.Client{Timeout: time.Second}

}

比如这样,但是运行后提示有问题,

image

你可以修复下,我不太懂这个go语言。

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.