burstcoin (OP)
|
|
March 24, 2015, 07:23:38 PM |
|
Hi everyone, is it possible to modify wallet code to force lower deadlines on testnet to speed up testing?
In the constants.java file add a couple 0s to the end of initial base target. I modified the crowdfund AT, to expect 1,050,000 BURST after 4 day after creation. 1,000,000 will be provided by the owner ow the script. 5% will be provided by anyone who wants to block the amount for the next year. When the target is not met, BURSTs will be sent back (same as in crowdfund) If the amount will be greater or equal it starts sending BURST to the owner of the script. 1/12 each 30 days (10800 blocks). It can be modified by adding delay before first sending (optional $blocks_before_first_repayment) DISCLAIMER: Its my first script, so take it only as proof of concept. Can someone who understands ATs check it for mistakes? Thanks :-) SET @months #0000000000000012 SET @interest_decision #0000000000001440 SET @month_in_blocks #0000000000010800 SET @target_amount #0105000000000000
FUN @block_height get_Block_Timestamp SLP $interest_decision FUN @amount get_Current_Balance BGE $amount $target_amount :repayment FUN @timestamp get_Creation_Timestamp
refund_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @tx_amount get_Amount_for_Tx_in_A FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Tx_in_A FUN send_to_Address_in_B $tx_amount JMP :refund_loop
repayment: FUN @monthly_payout get_Current_Balance DIV @monthly_payout $months FUN B_to_Address_of_Creator (SLP $blocks_before_first_repayment)
repayment_loop: SLP $month_in_blocks FUN @current_ammount get_Current_Balance BGE $monthly_payout $current_ammount :end_loop FUN set_A1 $current_ammount FUN send_A_to_Address_in_B FUN @timestamp get_Last_Block_Timestamp JMP :repayment_loop
end_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
Very nice! Nice to see someone is trying to write ATs . With a quick review I found these issues. I will check it later ( when I have more free time) for other issues . SET @months #0000000000000012 <- should be converted to hex f.e 12 -> #000000000000000c SET @interest_decision #0000000000001440 <- should be converted to hex SET @month_in_blocks #0000000000010800 <- should be converted to hex SET @target_amount #0105000000000000 <- should be converted to hex
FUN @block_height get_Block_Timestamp SLP $interest_decision FUN @amount get_Current_Balance BGE $amount $target_amount :repayment FUN @timestamp get_Creation_Timestamp
refund_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @tx_amount get_Amount_for_Tx_in_A FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Tx_in_A FUN send_to_Address_in_B $tx_amount JMP :refund_loop
repayment: FUN @monthly_payout get_Current_Balance DIV @monthly_payout $months FUN B_to_Address_of_Creator (SLP $blocks_before_first_repayment)
repayment_loop: SLP $month_in_blocks FUN @current_ammount get_Current_Balance BGE $monthly_payout $current_ammount :end_loop FUN set_A1 $current_ammount // you want to do montly payments. Each payment's amount is monthly_payout? if yes then change $current_ammount -> $montly_payout FUN send_A_to_Address_in_B FUN @timestamp get_Last_Block_Timestamp JMP :repayment_loop
end_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
end_loop: FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
(I dont see a reason looping through the tx's. All you want is to send all the amount to the creator. ) Did a quick read-through also, and another problem is your usage of send_A_to_Address_in_B. send_A_to_Address_in_B sends a message to address B with the message being in A. send_to_Address_in_B like you used in the other loop is the correct way to send funds.
|
BURST-QHCJ-9HB5-PTGC-5Q8J9
|
|
|
okae
Legendary
Offline
Activity: 1401
Merit: 1008
northern exposure
|
|
March 24, 2015, 07:30:51 PM |
|
voted
|
|
|
|
Merick
|
|
March 24, 2015, 08:07:03 PM |
|
The use of an AT in order to "lock up funds" (in return for some interest) is an interesting concept and one that is far better than any other approach (as you don't need to trust anything other than the actual code).
At first I was mystified as to what the purpose of this AT was but having seen other offers to stop coin dumping I finally "got it" (not being a miner nor invested in the coin itself sometimes this things are not obvious to me).
The AT team will be happy to further review this new AT code and hopefully we'll have an endorsed version available soon for this new use case (as usual we won't charge for our work but any donations made via the ATDevelopment Crowdfund AT would be appreciated).
So would my coins be locked in for a year or could I withdraw some/all of my coins and the interest I've collected up to then, but lose any future interest? I think most people have an issue locking up their coins long term. I have only been casually following this new AT discussion but it sort of sounds like a bank CD. You deposit funds into the account for X amount of time and receive interest payments. At the end of the X term you get your coins back along with your interest. Would be nice to have different time frames that offer different levels of interest just like a bank CD. Also, if someone wants or needs to withdraw funds early they should be allowed to, just charge a fee proportional to the size of the "CD" The fee could be kept by the bank as profits, or whatever. Do I understand this new AT correctly? Is the BurstBank essentially offering a service that is similar to a brick & mortar bank CD?
|
|
|
|
|
zippolo
|
|
March 24, 2015, 09:10:25 PM |
|
Hi everyone, is it possible to modify wallet code to force lower deadlines on testnet to speed up testing?
In the constants.java file add a couple 0s to the end of initial base target. Thanks, really appreciate it
|
|
|
|
crowetic
Legendary
Offline
Activity: 2282
Merit: 1072
https://crowetic.com | https://qortal.org
|
|
March 24, 2015, 10:30:48 PM |
|
I must say, I love all of this usage of ATs going on, and BURST dedication!
|
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▒ ▒▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▒ ▒▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▒ ▒▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▒ ▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▒ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓ ▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ ▒▒▒▒▒▒ ▓▓▓▓▓▓▒ ▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▒ ▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒ ▓▓▓▓▓▓▒ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▒ ▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓
| ORTAL
| .⊙.Web and Application hosting. ⊙ decentralized infrastructure .⊙.leveling and voting.
| Founder/current dev group facilitator |
[/td][/tr][/table] [/table]
|
|
|
BurstBank
Newbie
Offline
Activity: 14
Merit: 0
|
|
March 24, 2015, 11:56:09 PM |
|
Also, if someone wants or needs to withdraw funds early they should be allowed to, just charge a fee proportional to the size of the "CD" The fee could be kept by the bank as profits, or whatever.
Decentralized Bank dont need any profits, those fees from early withdrawed funds may be distrubuted to more patient members! In this case, Bank can be able to successfully operate even without any sponsors! Unpatient dumpers will lost, for example, 20%, that will go to more patient holders. It will be much stronger motivate to hold coins, that currently BurstBank.comSo this Decentralized Bank (if will got many amounts and members involved), will prevent dumps at all and will smooth volatility! That is a very important problem of cryptocurrencies, in cause of solved - Burstcoin can be able to get amazing attention and rise very high!
If it will be created, i can sponsorship start balance for percentages, and also will put a big part of my Burst as a member.
|
|
|
|
wuats
Newbie
Offline
Activity: 7
Merit: 0
|
|
March 25, 2015, 12:04:06 AM |
|
Also, if someone wants or needs to withdraw funds early they should be allowed to, just charge a fee proportional to the size of the "CD" The fee could be kept by the bank as profits, or whatever.
Decentralized Bank dont need any profits, those fees from early withdrawed funds may be distrubuted to more patient members! In this case, Bank can be able to successfully operate even without any sponsors! Unpatient dumpers will lost, for example, 20%, that will go to more patient holders. It will be much stronger motivate to hold coins, that currently BurstBank.comSo this Decentralized Bank (if will got many amounts and members involved), will prevent dumps at all and will smooth volatility! That is a very important problem, in cause of solved - Burstcoin can be able to get amazing attention and rise very high!
If it will be created, i can sponsorship start balance for percentages, and also will put a big part of my Burst as a member. This is great!
|
|
|
|
katlogic
Member
Offline
Activity: 75
Merit: 10
|
|
March 25, 2015, 12:27:34 AM |
|
Infidels! why you think /bin/laden is cheat? me no cheat my friend, me high-performance.
Soon, you will all be able to join the Al-Shabal Burstcorrist Mining Camp, where I'm willing to share my mining power with you. Nope, it's not the nodejs uray burst-pool. and NOOO, it's not the blago miner, I made proper port of the dcct-miner, for windos. And an optimized plotter, like 15% faster. Let's just say, amongst many other bugs, that {char blago[50]; return blago;} is just not right. OK? I see Blago commented on me
Peace be upon you!
Are you using windows for 10% of network as it is hinted in your post? If so, BURST is past the tipping point when less savoury al-kebab powers started taking notice. Just checking, something tells me diff will ramp up drastically if you're doing what I suspect you are doing.
|
|
|
|
jzhoulon
|
|
March 25, 2015, 01:31:15 AM |
|
I think the raising of the burst now may be caused by the falling of the bitcoin, every time btc raise , burst fall, the same as the contract
|
|
|
|
Irontiga
|
|
March 25, 2015, 01:49:05 AM |
|
I think the raising of the burst now may be caused by the falling of the bitcoin, every time btc raise , burst fall, the same as the contract
But burst's US price is generally been going UP!!
|
|
|
|
seasonw
|
|
March 25, 2015, 02:01:34 AM |
|
Voted! Let's vote to make Burst become 1st in the list
|
|
|
|
mczarnek
|
|
March 25, 2015, 02:56:22 AM |
|
I think the raising of the burst now may be caused by the falling of the bitcoin, every time btc raise , burst fall, the same as the contract
But burst's US price is generally been going UP!! Or has it just stayed at a fairly stable $0.04 each? Still the most undervalued coin ever though
|
|
|
|
Irontiga
|
|
March 25, 2015, 03:07:05 AM |
|
I think the raising of the burst now may be caused by the falling of the bitcoin, every time btc raise , burst fall, the same as the contract
But burst's US price is generally been going UP!! Or has it just stayed at a fairly stable $0.04 each? Still the most undervalued coin ever though I actually have no idea, i check the price on my blockex, and it's set to nzd(which has been low compared to US lately...)
|
|
|
|
bobafett
|
|
March 25, 2015, 05:43:14 AM |
|
Vote People!!!! We just have 24!!!
|
|
|
|
xizmax
|
|
March 25, 2015, 09:14:59 AM |
|
Vote People!!!! We just have 24!!! 25 Burst currently 2nd, behind Monero. Keep it up
|
|
|
|
Faust Roland
Member
Offline
Activity: 108
Merit: 10
|
|
March 25, 2015, 10:28:54 AM |
|
end_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
end_loop: FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
(I dont see a reason looping through the tx's. All you want is to send all the amount to the creator. ) Yes, there should be $monthly_payout in the repayment_loop I just re-did the crowdfund AT, where it is implemented this way, so I thought its important. Also I have question: in the CF is SET @funded #0000000000000002 but @funded is never used then. Why? Also, how are the infinite loops done? Why there is no sleep there?
|
|
|
|
bloodDiamond
|
|
March 25, 2015, 10:37:41 AM |
|
Also, if someone wants or needs to withdraw funds early they should be allowed to, just charge a fee proportional to the size of the "CD" The fee could be kept by the bank as profits, or whatever.
Decentralized Bank dont need any profits, those fees from early withdrawed funds may be distrubuted to more patient members! In this case, Bank can be able to successfully operate even without any sponsors! Unpatient dumpers will lost, for example, 20%, that will go to more patient holders. It will be much stronger motivate to hold coins, that currently BurstBank.comSo this Decentralized Bank (if will got many amounts and members involved), will prevent dumps at all and will smooth volatility! That is a very important problem of cryptocurrencies, in cause of solved - Burstcoin can be able to get amazing attention and rise very high!
If it will be created, i can sponsorship start balance for percentages, and also will put a big part of my Burst as a member. hi burstbank. Can you explain how does it work the "Confirmed wallets" process? do you have a bot to check it several times/day? or do you do it just the first time? tanks..
|
|
|
|
burstcoin (OP)
|
|
March 25, 2015, 10:38:11 AM |
|
end_loop: FUN A_to_Tx_after_Timestamp $timestamp FUN @tx_info check_A_Is_Zero BZR $tx_info :end_loop FUN @timestamp get_Timestamp_for_Tx_in_A FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
end_loop: FUN B_to_Address_of_Creator FUN send_All_to_Address_in_B JMP :end_loop
(I dont see a reason looping through the tx's. All you want is to send all the amount to the creator. ) Yes, there should be $monthly_payout in the repayment_loop I just re-did the crowdfund AT, where it is implemented this way, so I thought its important. Also I have question: in the CF is SET @funded #0000000000000002 but @funded is never used then. Why? Also, how are the infinite loops done? Why there is no sleep there? @funded exists so the interface file can check and display the state of the cf. sleep is not needed in that end loop since the AT will stop when it has no balance, and send_All_to_Address_in_B will empty the balance, so after that instruction it will stop and only resume if more funds are sent to it.
|
BURST-QHCJ-9HB5-PTGC-5Q8J9
|
|
|
GoldSeal
Legendary
Offline
Activity: 1862
Merit: 1002
|
|
March 25, 2015, 11:04:43 AM |
|
Can someone point me to a decent guide on how to solo mine this coin?
|
Moving to Puerto Rico...
|
|
|
|