Skip to main content

Questions tagged [chainbase]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

Nodeos replaying from snapshot and what it means for the full transaction history

Let's say I have an application with the following transactions on chain with their respective blocks. block 0 - <nothing> block 1 - eat block 2 - sleep block 3 - play block 4 - cook And let't ...
edmamerto's user avatar
  • 105
6 votes
2 answers
308 views

When to use RocksDB compared to Chainbase?

The EOSIO developers website says: Nodeos stores the transaction history and a current state. The transaction history is stored in the blocks.log file on disk. State, which is changed by the ...
Phillip Hamnett - EOS42's user avatar
0 votes
1 answer
32 views

chainbase::database error

After program is terminated, user defined object cannot be loaded to chainbase::database. my code is followed. enum my_type { my_inx01_object_type }; namespace eosio { namespace chain { using ...
iambaeba1's user avatar
0 votes
1 answer
27 views

Why I didn't initialize database?

I want to add the my multi_index in controller db. And Finally Adding all class is set up. But When eos program initialize the database, it didn't work. my error log : /eos/libraries/chainbase/...
T Eom's user avatar
  • 88
0 votes
1 answer
44 views

How is memory aligned in the EOSIO smart contract consensus memory?

Are there any memory savings if I declare a table record that has, say, a 64-bit integer (occupies 8 bytes) and a 16-bit integer (occupies 2 bytes)? Or is it aligned at 64 bits and said record would ...
Fabiana Cecin's user avatar
0 votes
1 answer
80 views

How to read data at certain block number on EOS?

How to read data at certain block number on EOS? e.g. How could I read the data of a contract's table at certain block number?
luoyhang003's user avatar
0 votes
0 answers
45 views

How does session of chainbase work?

Do you have any knowledge about session of chainbase (It means: Each user we can create a session in chainbase and this session exits util user who be deleted. And The session contains many ...
user avatar
1 vote
1 answer
119 views

Can we use mongodb store state?

I read chainbase and fork database, I understood chainbase which stores user state and fork database which stores blocks. So Can I use mongodb to store user state and ignore chainbase? If it can, we ...
user avatar
0 votes
1 answer
81 views

What is mongodb_plugin used for?

I have some confuse with chain_plugin and mongo_plugin, why do we need them? And if I can modify chainbase which can write directly state to disk, Do I can discard mongoDB?
user avatar
0 votes
0 answers
71 views

How to start with chainbase?

I am reading chainbase, and I wonder if anyone have idea to start with chainbase? This means: what does it flows, and if I write directly to disk, it is fine? Because I see in chainbase class, I see ...
user avatar
3 votes
1 answer
80 views

Where is the fork database?

I am just reading source code of EOS but I am not clear with fork databases. I do not know exactly where it is (on RAM or on disk). I also would like to have a look at the exact code. Which files are ...
user avatar
1 vote
1 answer
47 views

Can the contract data not exist in the chainbase but in an external system such as MongoDB, MySQL

Due to the limitations of the contract, the external system cannot be read, and more data needs to be stored in the actual business to execute the contract based on the data. And these data are ...
xaingya's user avatar
  • 11
1 vote
1 answer
110 views

How can I read block data from chainbase memory of a running node?

I am running nodeos on my local machine. I can get the account data for an account by hitting the chain/get_account API. However, I wish to extend its functionality in the form of a plugin without ...
eosahota's user avatar
0 votes
1 answer
711 views

What is the ChainBase database used for?

EOSIO appears to make use of the Chainbase database for various functions in the codebase. What is this used for and how does it relate to the RAM concept in EOSIO? Is it simply the database used to ...
confused00's user avatar
  • 5,554