Giter VIP home page Giter VIP logo

karbo's People

Contributors

aivve avatar amjuarez avatar ekimmo avatar fourschaft avatar gregmeszaros avatar karboduck avatar lastick avatar noodledoodlenoodledoodlenoodledoodlenoo avatar pmitchev avatar quazarcoin avatar r3volut1oner avatar trendscharts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

karbo's Issues

Transaction multi-signature validation looks not finished.

Transaction multi-signature validation looks not finished.

Because output is not filled and has zero values condition on line 569 will be always true and validation always gonna fail.

if (outputKeyIndex == output.keys.size()) {

CryptoNote::MultisignatureOutput output;
size_t inputSignatureIndex = 0;
size_t outputKeyIndex = 0;
while (inputSignatureIndex < in.signatureCount) {
if (outputKeyIndex == output.keys.size()) {
m_validationResult.errorCode = CryptoNote::error::TransactionValidationError::INPUT_INVALID_SIGNATURES;
m_validationResult.errorMessage = "Transaction has input with invalid signature";
return false;
}

Fix dynamic difficulty-driven fee

The dynamically adjusting fee based on difficulty needs to be fixed and need to take into account possible POW change #21.

Now it uses an all-time avg. difficulty as a reference difficulty whereas it should use some selected difficulty at the point of time with the desired price to calculate the corresponding fee.

If new POW algo is introduced, this all-time difficulty will not be relevant.

Moreover, this all-time average difficulty is not from the initial equation F = S * A / D from whitepaper where, F​ — minimum transaction fee in native currency, KRB; S​ — starting fee in fiat equivalent, USD; A​ — Average difficulty constant, corresponding to the chosen level of fiat price; D​ — Current difficulty.

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.