Giter VIP home page Giter VIP logo

bts-mmcontest-v2's Introduction

概述

Bitshares MarketMaking Contest script for https://bitsharestalk.org/index.php?topic=29665.msg342265

How to verify the reward data

  1. Run this branch (https://github.com/viaNull/bitshares-core/tree/bts-mmcontest-v2 ) delayed node (https://github.com/bitshares/bitshares-core/wiki/Delayed-Node) to generate snapshots (update "config.ini" as follows)

ugly-snapshot-markets = [["1.3.0","1.3.113"],["1.3.0","1.3.121"],["1.3.0","1.3.120"],["1.3.0","1.3.1325"],["1.3.0","1.3.2241"],["1.3.0","1.3.3926"],["1.3.0","1.3.4157"],["1.3.0","1.3.4198"],["1.3.0","1.3.5286"],["1.3.0","1.3.5542"],["1.3.0","1.3.5589"],["1.3.0","1.3.2598"],["1.3.0","1.3.3715"],["1.3.0","1.3.4199"],["1.3.0","1.3.4760"],["1.3.0","1.3.2635"],["1.3.0","1.3.4106"],["1.3.113","1.3.2241"],["1.3.113","1.3.3926"],["1.3.113","1.3.4157"],["1.3.113","1.3.4198"],["1.3.113","1.3.5286"],["1.3.113","1.3.5542"],["1.3.113","1.3.5589"],["1.3.113","1.3.2598"],["1.3.113","1.3.3715"],["1.3.113","1.3.4199"],["1.3.113","1.3.4760"],["1.3.113","1.3.2635"],["1.3.113","1.3.4106"],["1.3.121","1.3.2241"],["1.3.121","1.3.3926"],["1.3.121","1.3.4157"],["1.3.121","1.3.4198"],["1.3.121","1.3.5286"],["1.3.121","1.3.5542"],["1.3.121","1.3.5589"],["1.3.121","1.3.2598"],["1.3.121","1.3.3715"],["1.3.121","1.3.4199"],["1.3.121","1.3.4760"],["1.3.121","1.3.2635"],["1.3.121","1.3.4106"],["1.3.120","1.3.2241"],["1.3.120","1.3.3926"],["1.3.120","1.3.4157"],["1.3.120","1.3.4198"],["1.3.120","1.3.5286"],["1.3.120","1.3.5542"],["1.3.120","1.3.5589"],["1.3.120","1.3.2598"],["1.3.120","1.3.3715"],["1.3.120","1.3.4199"],["1.3.120","1.3.4760"],["1.3.120","1.3.2635"],["1.3.120","1.3.4106"],["1.3.1325","1.3.2241"],["1.3.1325","1.3.3926"],["1.3.1325","1.3.4157"],["1.3.1325","1.3.4198"],["1.3.1325","1.3.5286"],["1.3.1325","1.3.5542"],["1.3.1325","1.3.5589"],["1.3.1325","1.3.2598"],["1.3.1325","1.3.3715"],["1.3.1325","1.3.4199"],["1.3.1325","1.3.4760"],["1.3.1325","1.3.2635"],["1.3.1325","1.3.4106"]]

  1. In the delay_node's data dir, cd to ugly-snapshots/2020/<date>

    • create folder filled_orders and snapshots
    • mv files with name *.filled to folder filled_orders
    • mv file with name *.snapshot to folder snapshots

    You can use the following command to move files in case error occurs:

    find . -maxdepth 1 -name *.filled | xargs -i mv {} filled_orders/
    find . -maxdepth 1 -name *.snapshot | xargs -i mv {} snapshots/
    
  2. Edit the Ruby script cb_snapshot_process.rb, scoll down to the end of this file, change variable base_dir to the actual data dir.

  3. Run the Ruby script cb_snapshot_process.rb to calculate rewards.

  4. Run the Ruby script cb_verify.rb date proposal_id to verify rewards data.

Author

ChenBin syalon

Related

This Project built from bts-mmcontest-scripts by Abit

bts-mmcontest-v2's People

Contributors

chen188 avatar syalon avatar vianull 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.