Author

Topic: Electrum Question (Read 481 times)

sr. member
Activity: 697
Merit: 253
August 12, 2017, 03:26:06 PM
#13
@harizen @HCP

Thanks for your ideas and suggestions. I will try all methods given and will report to this thread if what's happen.

Glad that you guys responded to my question. Thanks! Smiley
HCP
legendary
Activity: 2086
Merit: 4361
August 10, 2017, 06:30:40 PM
#12
Honestly, this seems like an actual legitimate usage of a spreadsheet...

You'd have each "game" on a different sheet... with columns indicating the result, person, bitcoinaddress, amount wagered and a column to use to indicate the winning result. You'd then have a "Winners" sheet... on each row you'd use various lookup functions that find the winning result flag, and return the data from the matching row.

I dummied one up in like 5-10 minutes Smiley https://www.dropbox.com/s/tm1d1p8h5sqfdl2/Betting.xlsx?dl=0

You should even be able to import it into Google Sheets if you don't have Excel.



NOTES:
- this assumes a "winner takes all" distribution of the funds for each game... I'm not sure how you handle it if no-one picks the actual result... do you just choose the closest?
- By using filters on the columns, you should be able to easily find just the amounts required for each person.


legendary
Activity: 3122
Merit: 1398
For support ➡️ help.bc.game
August 10, 2017, 02:42:59 PM
#11
The problem is, Im having a hard time to compute Person's A total winnings because of the long list so I think if I can distribute winnings by doing one on one evaluation on the sheets, it will work saving my ass to do digging the other sheets to compute their payments.

Refer to post above your post (HCP's response).

You can check if there's a double entry by clicking on PREVIEW. If there's a same address, it will lineup accordingly and to that you can now modified it and make it as one. You just need some little work here but it's not a hassle one. Smiley
sr. member
Activity: 697
Merit: 253
August 10, 2017, 02:28:14 PM
#10
Thanks for the answer guys I will take note of that. I know it's wiser to have them send at only single input.

Im not doing it yet. The reason why I asked that question is, in our office, Im running an usual gambling here in our country where people will bet on a certain game scores and Im the one who will be the sole table leader. Example in a basketball game, the final score is 100-92, the person who bets for 0-2 will be the winning number (0 came from the last digit 100 then 2 is for the losing team). I hold all the amount and the terms is the winnings will be distributed every 5 games so I currently have a long list now because we have lots of players here starting from 0-0 to 9-9 for 5 game (currently at 4 now so payment is nearer).

To make it more clearer, (just an example, this is a same person)

Sheet 1: Person A  will received 0.092btc
Sheet 2: Person A will received 0.00062btc
Sheet 3: Person A will received 0
Sheet 4: Person A will received 0.015btc
Sheet 5: Person A will received 0.021btc

The problem is, Im having a hard time to compute Person's A total winnings because of the long list so I think if I can distribute winnings by doing one on one evaluation on the sheets, it will work saving my ass to do digging the other sheets to compute their payments.
HCP
legendary
Activity: 2086
Merit: 4361
August 09, 2017, 02:06:29 AM
#9
You guys have heard of the "preview" button right? You can set up a transaction and see what it is going to do:


same address listed twice...


Generates multiple outputs to that address as expected:


NOTE: green = output, yellow = change


Also, an output only increases a transaction size by about 1/5th the amount that an input does... 34 bytes vs. 148 bytes... so the difference in fees will be relatively minor... even at "high" 300 sats/byte it would only be an extra 10,000 sats.
hero member
Activity: 882
Merit: 506
August 08, 2017, 11:14:03 PM
#8
Have you sent those transactions or just asked about it?
I am wondering too, what will happen if someone send bitcoin to same address but different amount.
I agree that it will create different output since you've set it that way. The fees will be same as another and doesn't increase, maybe.
If you have to divide your transactions into several amounts, then it will be fine, in order to prevent any problem to person who will receive those coins. But, if you can assure to make one input as much BTC0,15, why bother to make two inputs Grin

So you know, having more outputs and more inputs results into more fees. I guess you didn't know that because of your statement "...it will create different output since you've set it that way. The fees will be same as another and doesn't increase, ..."

That is how fees are computed, since if there are more inputs and outputs the size of your transaction increases. The larger your transaction size the higher amount of fees are recommended to be placed, if not, then you will have to wait forever for your transaction to confirm.
copper member
Activity: 2142
Merit: 1305
Limited in number. Limitless in potential.
August 08, 2017, 08:42:47 PM
#7
First things first this thread must be move to Electrum sub forum.
@LuanX3 is right why would you send two times with different amounts if you can do it for 0.15 at once, so what's the reason of doing thing this? I guess its possible only if the other one is in different transaction but the thing is you have to pay another tx fee but it doesnt matter since the recommended fee is not huge just like before.
hero member
Activity: 910
Merit: 523
August 08, 2017, 06:51:51 PM
#6
Have you sent those transactions or just asked about it?
I am wondering too, what will happen if someone send bitcoin to same address but different amount.
I agree that it will create different output since you've set it that way. The fees will be same as another and doesn't increase, maybe.
If you have to divide your transactions into several amounts, then it will be fine, in order to prevent any problem to person who will receive those coins. But, if you can assure to make one input as much BTC0,15, why bother to make two inputs Grin
hero member
Activity: 882
Merit: 506
August 08, 2017, 05:22:11 PM
#5
I think the result would be double spend if you send different amount to the same address when you are sending mass payment..
Well never tried it yet but much better to be careful when sending bitcoin just to be safe and prevent for double spending .
If you use the address where bitcoin from and sending to the same address it may conflict so better to don't do that like other said.

LOL. Do you even know what double spend means?! Bro, don't throw terms you don't even understand! Double spending means that you already sent the coins then you send them again to another address before the first transaction even confirms, then the second transaction gets confirmed before the first one. That is double spend. There is no way that the example transaction would result to a double spend since it will come from only one transaction and we are not talking about multiple addresses here.
hero member
Activity: 924
Merit: 1001
August 08, 2017, 04:47:38 PM
#4
I think the result would be double spend if you send different amount to the same address when you are sending mass payment..
Well never tried it yet but much better to be careful when sending bitcoin just to be safe and prevent for double spending .
If you use the address where bitcoin from and sending to the same address it may conflict so better to don't do that like other said.
hero member
Activity: 756
Merit: 505
August 08, 2017, 04:40:02 PM
#3
In theory it will make a difference. I haven't tried this but what I think is that it will result to another output.

So in your example,

1bdbdbasbfdff213213, 0.1
1bdbdbasbfdff213213, 0.05

this will result in an additional output. Which means more fees for the sender if you use a dynamic fees.

Not to mention this would add another input when the address "1bdbdbasbfdff213213" sends a transaction using both the 0.1 and 0.5 coins.
If there is really no good reason why you want to do this, I suggest just don't do it. It just makes it more complicated for everybody including you.
hero member
Activity: 882
Merit: 506
August 08, 2017, 04:21:20 PM
#2
In theory it will make a difference. I haven't tried this but what I think is that it will result to another output.

So in your example,

1bdbdbasbfdff213213, 0.1
1bdbdbasbfdff213213, 0.05

this will result in an additional output. Which means more fees for the sender if you use a dynamic fees.
sr. member
Activity: 697
Merit: 253
August 08, 2017, 03:07:57 PM
#1
I want to send payments for multiple addresses; What if I send XXX Amount to one address then after some lines, I add again XXX amount to the same address. Does it will count as one or it will have conflict? Thanks.

To make it clearer;

1bdbdbasbfdff213213, 0.1
1bdsadasddsad22113, 0.15
1dfsaffefefefefeff13wd, 0.12
1ttrytryhrtghdfgdfgdfgdf 0.06
1bdbdbasbfdff213213, 0.05

The bolded part was the same address Im talking about with different payment amount.


Jump to: