Phillip Hamnett - EOS42
Moderator
  • Member for 3 years, 8 months
  • Last seen more than a month ago
Is a wallet needed for the EOSIO account?
3 votes

An account can have a smart contract associated with it, as well as having tokens stored in it, and staked tokens. A wallet is just a way to access an account. It contains the public and private keys ...

View answer
What does it mean to 'stake' tokens?
3 votes

To the best of my understanding, the EOS system allows users to interact with smart contracts, but in order for this interaction to occur, the contract needs to have enough CPU power and bandwidth to ...

View answer
Building smart contract error: redefinition of 'time' as different kind of symbol typedef uint32_t time;
3 votes

The problem is that the code you have written is somehow accessing both the standard C++ definition of time (from /usr/include/time.h) and also the EOS.IO definition of time (from ../eosiolib/types.h)....

View answer
Error querying RAM: Unable to unpack built-in type etc
2 votes

This error is usually caused by having a table that contains data in a specific format and then updating the ABI after the fact to change the data types or structures. The ABI file now thinks that all ...

View answer
cleos push action is not working on multihost peer node
Accepted answer
2 votes

You are correct in that you need to create a wallet on inita node as well as on the genesis node. Actions can only be pushed to the blockchain from a location where the private key is accessible. The ...

View answer
When will "pending schedule" become the "active schedule" for producers?
2 votes

Consensus Protocol 3.3. The Consensus Process The EOSIO consensus process consists of two parts: Producer voting/scheduling - performed by the the DPoS layer 2 Block production/validation - ...

View answer
How to add "eosio.code" permission to an account on testnet?
2 votes

I think this is specific to the EOSIO testnet from Block One. You can try adding it by doing the following: cleos -u https://api.testnet.eos.io set account permission lsqkeotnnpyu active --add-code ...

View answer
Is there any need of holding EOS tokens by Dapp users?
2 votes

Any event (action) that occurs on an eosio chain is at least a part of a transaction. The transactions are sent to a node that either belongs directly to a block producer, or will be forwarded to one. ...

View answer
Why actions can't have return values?
2 votes

Your smart contract can have as many functions as you like. They don't all have to be actions. Only actions are required to return void, every other function can return whatever you like. If you need ...

View answer
Can I send money to an EOS public key?
2 votes

You can't send money to a public key, because the same public key can be used for many accounts, and the code wouldn't know which account should receive the money. This is the same on any eos.io based ...

View answer
Why does the -abigen option in eosio.cdt not work?
2 votes

The solution to my problem was that the wasm file had to exactly match the name of the contract in the attributes of the contract class. So as my file was called mycontract.wasm, I had to have the ...

View answer
How to display custom token on Mainnet Monitor?
2 votes

This should happen automatically as long as you follow the format of the eosio.token contract. The two most important things are that you have the tables from the eosio.token contract: accounts stats ...

View answer
Penalty for not producing block for more than 24 hours
Accepted answer
2 votes

This is not in the code, but it is the recommendation that the other BPs unregproduce the BP who is failing to produce blocks. So far, this feature has never needed to be used because the BPs are all ...

View answer
Is there any way to "request transfer" from another EOS account without "multisig"
2 votes

Account B could give account A permission to access his account's transfer action. But that wouldn't limit the amount of money that was transferable, so it would be very dangerous for account B to do ...

View answer
Custom token in scatter
Accepted answer
2 votes

The chrome extension is deprecated and unsafe. You should move to the desktop application as soon as possible. In the desktop application, you can simply click on "View Tokens", and it will list all ...

View answer
How to avoid cpu usage limits
Accepted answer
2 votes

Your idea is along the right lines. Either do batch updates, where you keep track using a seperate table to indicate current progress. Or right an action which takes the primary key as an argument, ...

View answer
which cleos command is used to transfer tokens
2 votes

The command to transfer EOS with cleos is as follows: cleos transfer from to quantity memo An example of transferring 12.5 EOS from account12345 to account54321: cleos transfer account12345 ...

View answer
Is it possible to compile a smart contract using g++ or clang?
2 votes

With eosio.cdt, it is now possible to compile object code which can then be tested using unit tests. Check out https://eosio.github.io/eosio.cdt/1.5.0/guides/native-tester.html for a detailed guide. ...

View answer
Multiple print statements?
Accepted answer
2 votes

You're right, I just tested this and on my computer it only show's the first message. However if you check the nodeos logs (and you have the flags --contracts-console --verbose-http-errors), then all ...

View answer
how to solve Error Details: Cannot charge RAM to other accounts during notify on testnet
2 votes

This error means you are trying to charge someone RAM through an action that isn't specific to your contract. The user wants to just send money, and they wouldn't expect that they would be charged ...

View answer
What stops exchanges and other whales with large amounts of EOS voting on referendum proposals and skewing the outcome?
2 votes

EOS is a plutocracy. The idea is that the large token holders have the most to gain or lose from system-wide changes, so their interests should align with the interests of the network as a whole.

View answer
What is the difference between a method call and the use of SEND_INLINE_ACTION?
2 votes

You can call any function of a smart contract from within the smart contract, however only functions labelled as actions can be called from outside of the smart contract. So if you have a function in ...

View answer
EOS Unstaking and changing keys
2 votes

no you will not have lost your tokens. It takes 3 days to unstake your tokens, after that they should go from "refunding" to "available". Things to note are: If you unstake again before the current ...

View answer
Where are new accounts stored?
2 votes

The new account is stored on RAM, nothing is stored on disk with EOS.

View answer
Constructor error message
Accepted answer
2 votes

You may have written several constructors for your BP class, but do you have a default constructor? All classes that are to be used as multi_index arrays require that the class has a default ...

View answer
eosio multisig exec problem
2 votes

In the proposal, there are several issues: The first bit of JSON where you specify the permissions has to be in alphanumeric order. i.e. partner1 has to come before partner2. The second section of ...

View answer
Can an object of the class 'contract' or a class that inherits 'contract' be created in the cpp file of the contract we are making?
2 votes

Yes it can. You can then use it as a normal C++ class. If you use a function that changes persistent memory then it will also change it in the current instantiation of the contract.

View answer
Is there a flaw in deciding who can pay for RAM?
2 votes

A stop-gap fix has been issued in v1.2.3 of EOS Deprecation of the ability of a notified contract to bill RAM to authorizers of the original action EOSIO blockchains enable a useful feature which ...

View answer
How do I ensure my Action Listener responds only to authentic senders?
2 votes

There are two ways that you can prevent this: You remove the buy function from the ABI, it can therefore never be called manually, but only through another function that is part of the ABI. You ...

View answer
fork database is inconsistent with shared memory
2 votes

Just writing this so that there is a formal answer. The problem can be fixed by running your normal nodeos command with the additional --delete-all-blocks option, example shown below: nodeos -e -p ...

View answer
1
2
3 4 5
7