Code Monkey home page Code Monkey logo

Comments (5)

dincho avatar dincho commented on June 11, 2024 1

Is there a hypotheses when an account can become payable ? 🤔

from aeternity.

hanssv avatar hanssv commented on June 11, 2024 1

@dincho An address/account is by default payable (i.e. any account that isn't in the state tree (yet) is considered payable). When a contract is created, the associated account is set to either payable or not payable depending on the contract (default is not payable). After the contract creation there is no way to change the payable status.

@davidyuk in this case the cost for checking is small enough that I think we can add it as the default - doing HTTP is as you suggest worse 😅 - though the client could cache this...

Let's add it to the mempool-checks!

from aeternity.

hanssv avatar hanssv commented on June 11, 2024

Keyword here is we can, I guess. I don't think we lookup the recipient account when checking a SpendTx, so it would be an additional cost, if the recipient is a name it would be even more costly.

Maybe some of the tools along the way could warn that spending to this account is perhaps not a great idea 😅

from aeternity.

davidyuk avatar davidyuk commented on June 11, 2024

Isn't it costly to keep such transaction in mempool?

Maybe some of the tools along the way could warn that spending to this account is perhaps not a great idea

Checking this on sdk side also would be an additional cost. Even more expensive because of extra http requests.

from aeternity.

dincho avatar dincho commented on June 11, 2024

After the contract creation there is no way to change the payable status.

That was my mine question, and by account, I meant contract account/address.

from aeternity.

Related Issues (20)

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.