Giter Club home page Giter Club logo

aura's People

Contributors

dependabot[bot] avatar eledra89 avatar fibonacci998 avatar htiennv avatar jasonsopko avatar kienvc avatar narutobacoshiba avatar phanhoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aura's Issues

Claims and Mint module

Claims and Mint module serves a chain tokenomics. These two modules are present in almost all serious chains.

  1. Mint module: mint module governs the flow of newly created token per block.
  • Per 1000 token / block for example. How much goes to community pool, how much goes to staking, how much goes to artist incentives, should some be burned, ...
  • This is an important module to govern the flow of token.
  1. Claims module: free airdrop is just worst. Claims, however, is way better. It incentivies airdropped account to try-out the chain use cases.

Screenshot from 2022-05-15 01-10-16

writing module to custom folder can lead to complexity in proto generation

By this point, I still don't understand why Aura decides to write custom module in custom folder. There is a specific reason why it is placed in x folder in the first place.

Protobuf defines the datastructure of every cosmos module. When generating go files for protobuf, .pb.go files will be generated into x/module/types. By writing custom module to custom folder, it will complicate things such as making aura source incompatible with ignite cli. How so?

  • "ignite generate proto-go" for generating go files bases on protobuf will write to folder x
  • "ignite scaffold module" for creating new custom module will also write to folder x

Process fault/crash and refused to resume

I woke up this morning with my validator being down. After I inspected, only peer gossip was being shown in the log. I restarted the service and got this:

Aug 24 03:52:26 horace systemd[1]: Starting Aura Validator...
Aug 24 03:52:26 horace systemd[1]: Started Aura Validator.
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF starting node with ABCI Tendermint in-process
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting multiAppConn service impl=multiAppConn module=proxy
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting localClient service connection=query impl=localClient module=abci-client
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting localClient service connection=mempool impl=localClient module=abci-client
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting localClient service connection=consensus impl=localClient module=abci-client
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting EventBus service impl=EventBus module=events
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting PubSub service impl=PubSub module=pubsub
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Starting IndexerService service impl=IndexerService module=txindex
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Found local state with non-zero height, skipping state sync
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF ABCI Handshake App Info hash="-/E�ج�9.��\x14�}ޜo \x01Z\x17|���\v'I\x0e8�\x0f" height=629134 module=consensus protocol-version=0 software-version=euphoria_4027003
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF ABCI Replay Blocks appHeight=629134 module=consensus stateHeight=629134 storeHeight=629135
Aug 24 03:52:26 horace aurad[26177]: 3:52AM INF Replay last block using real app module=consensus
Aug 24 03:52:26 horace aurad[26177]: panic: runtime error: invalid memory address or nil pointer dereference
Aug 24 03:52:26 horace aurad[26177]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x17aedb3]
Aug 24 03:52:26 horace aurad[26177]: goroutine 1 [running]:
Aug 24 03:52:26 horace aurad[26177]: github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x25da6d8, 0xc0004d0a80}, {0xc000365630, 0xa}, {0x25c4be0, 0xc0001a0510}, ...}, ...)
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:283 +0x813
Aug 24 03:52:26 horace aurad[26177]: github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc000ea4780?, {0x33bf668?, 0x0?, 0x0?})
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/cosmos/[email protected]/server/start.go:126 +0x169
Aug 24 03:52:26 horace aurad[26177]: github.com/spf13/cobra.(*Command).execute(0xc000ea4780, {0x33bf668, 0x0, 0x0})
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
Aug 24 03:52:26 horace aurad[26177]: github.com/spf13/cobra.(*Command).ExecuteC(0xc000db2280)
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bd
Aug 24 03:52:26 horace aurad[26177]: github.com/spf13/cobra.(*Command).Execute(...)
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
Aug 24 03:52:26 horace aurad[26177]: github.com/spf13/cobra.(*Command).ExecuteContext(...)
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
Aug 24 03:52:26 horace aurad[26177]: github.com/cosmos/cosmos-sdk/server/cmd.Execute(0xc000db2280?, {0xc00005a880, 0x1c})
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/go/pkg/mod/github.com/cosmos/[email protected]/server/cmd/execute.go:36 +0x1eb
Aug 24 03:52:26 horace aurad[26177]: main.main()
Aug 24 03:52:26 horace aurad[26177]:         /validator-home-1/aura/aura/cmd/aurad/main.go:44 +0x126
Aug 24 03:52:26 horace systemd[1]: aura.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 24 03:52:26 horace systemd[1]: aura.service: Failed with result 'exit-code'.

To resolve the issue I performed an unsafe-reset-all and did a fresh state sync.
Any idea on what may have initially caused it? I run several nodes on one server. This was the only one to have an issue. I would expect to see more of the nodes down if it was a drive or some other type of possible hardware issue.

Wrong type assign to Sprintf in ante.go smartaccount

When viewing event smart_account_tx from this tx on serenity, I got that value

JSFzKFBBTklDPVN0cmluZyBtZXRob2Q6IHJlZmxlY3QuVmFsdWUuSW50ZXJmYWNlOiBjYW5ub3QgcmV0dXJuIHZhbHVlIG9idGFpbmVkIGZyb20gdW5leHBvcnRlZCBmaWVsZCBvciBtZXRob2QpLzI=
// decode base 64 return:
%!s(PANIC=String method: reflect.Value.Interface: cannot return value obtained from unexported field or method)/2

May be bug from this line:
https://github.com/aura-nw/aura/blob/200f913b9982c4b4d78885938453c326372f4c83/x/smartaccount/ante.go#L385C97-L385C97

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.