Coder Social home page Coder Social logo

dynamic_block_demo's Introduction

dynamic_block_demo's People

Contributors

spackle-xmr avatar rucknium avatar

Stargazers

 avatar  avatar  avatar Jarrian Gojar avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rucknium

dynamic_block_demo's Issues

F_T can dip negative when M_B is crossing M_N

Only checking B + B_T <= 0 allows for F_T to be calculated as a negative value when T_T is only partially in the penalty zone. I can force the F_T calculation to only consider the part of the transaction in the penalty zone, though I haven't decided on the most elegant way to do this. An example fix might be:

# Fee Calculations
T_T = T_R # Use reference tx size
B_T = T_T / M_N # Increase from adding additional transaction to block
F_T = R_Base * (2 * B * B_T + B_T**2) # Additional fee required to overcome the increase in penalty, F_T = P_T
if B + B_T <= 0: 
    F_T = 0 # B + B_T > 0 for calculated F_T to be valid

if M_B < M_N and M_B + T_T > M_N: # If T_T jumps M_B into penalty zone
    T_T = T_T - (M_N - M_B) # consider only portion of tx in penalty zone 
    B_T = T_T / M_N # Increase from adding additional transaction to block
    F_T = R_Base * B_T**2 # take B = 0

f_I = 0.95 * R_Base * T_R / (M_L**2) # Minimum fee per byte, M_F = M_L

I'm still thinking about it.

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.