Bitshares-core: Fund account on account creation

Created on 26 Oct 2018  路  15Comments  路  Source: bitshares/bitshares-core

As a faucet operator I want to be able to fund accounts on creation so that newly created accounts can contain a balance without having to wait for the account creation operation to be in LIB before performing a transfer.

CORE TEAM TASK LIST

  • [ ] Evaluate / Prioritize Feature Request

    • [x] Draft BSIP: @clockworkgr @cogutvalera

    • [ ] Approve draft

    • [ ] Vote BSIP for implementation

  • [ ] Refine User Stories / Requirements
  • [ ] Define Test Cases
  • [ ] Design / Develop Solution
  • [ ] Perform QA/Testing
  • [ ] Update Documentation
1b User Story 2b Gathering Requirements 3b Feature 6 API 6 CLI 6 Protocol 6 Security hardfork

Most helpful comment

As mentioned in Telegram:

  • perhaps good to have a list of asset objects (asset_id+amount);
  • need to honor asset authorization settings (e.g. whitelisting)

All 15 comments

Many gateways have been asking for this kind of feature, and it would be extremely helpful as well for all the "Insufficient funds" support requests for not properly maintained fee pools.

The testnet faucet is also supporting that, but via a separate transfer after account creation, which is error prone.

+1

That would be helpful to the testnet faucet too, which gives every new account x TEST for, well, testing ... :)

@stefan: that script is not error prone - ever. I wrote it :D :D :p

@ryanRfox I want to implement this feature a bit later :) claiming it now if possible, just wanted to mention it ...

Thanks !

that was fast :P

Please write a BSIP.

ok. will do

Yes, BSIP is the proper next step. @cogutvalera love the enthusiasm. Hope you are willing to assist with drafting the spec.

@ryanRfox yes sure thank you !

As mentioned in Telegram:

  • perhaps good to have a list of asset objects (asset_id+amount);
  • need to honor asset authorization settings (e.g. whitelisting)

I like the idea, it is somehow related to something we discussed about approving a proposal at the same time as creating it(dont remember if we have an issue for this)

As mentioned in Telegram:

  • perhaps good to have a list of asset objects (asset_id+amount);
  • need to honor asset authorization settings (whitelisting)

second part should be quite easy....if an asset simply has a whitelist....it can't be there...
as account hasn't been created yet, it can't be whitelisted.

@clockworkgr asset authorization is not only whitelisting. My bad for didn't state it clearly. IMHO we need to mention it in the BSIP, but don't need to go into details about it.

It looks like we can test the consistency of account_id and name or the consistency of asset_id and symbol etc by modifying or adding predicate in assert_operation.

https://github.com/bitshares/bitshares-core/blob/3ea52879d634f0bd5bca80e6059b9308ba3270ff/libraries/chain/assert_evaluator.cpp#L33-L71

@btsabc yes a faucet can do that, but also with downsides:

  • current fee for assert_operation is expensive;
  • the account creation operation or the transfer will be broadcast then fail which is not user-friendly.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

abitmore picture abitmore  路  6Comments

wmbutler picture wmbutler  路  8Comments

startailcoon picture startailcoon  路  5Comments

vikramrajkumar picture vikramrajkumar  路  7Comments

TheTaconator picture TheTaconator  路  8Comments