Bitcoin Forum
June 25, 2024, 03:03:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 [327] 328 329 330 331 332 333 334 »
6521  Economy / Economics / Re: How big is Bitcoin's presence in China? on: March 01, 2012, 08:11:19 AM
In the short term, I think, geeks and speculators would be the first ones who are attracted to Bitcoin in China, just like any other places of the world.

Very true - also I wouldn't be surprised at all if computers at some "wang ba's" (internet cafe/bars that are popular for gaming) are mining like crazy when not being used by customers (or perhaps even used by customers to do so).
6522  Economy / Economics / Re: How big is Bitcoin's presence in China? on: March 01, 2012, 07:41:29 AM
Evading tax by faking vouchers is not without risk. The local government may randomly punish some of them to frighten the rest.

True but for sure it is still very common (the stored value card business is still going strong I believe).

I mostly agree with you though, especially for your last paragraph. BTW how many years have you been in China? It is very uncommon for a westerner to know so many details that are more or less "underground".  Grin

Have been here over 5 years now and my wife is Chinese. Smiley
6523  Economy / Economics / Re: How big is Bitcoin's presence in China? on: March 01, 2012, 07:13:05 AM
Large multinationals might pay a lot of tax but most small businesses do not (ever been asked "xu yao fa piao ma?").

It is very common for an employee's salary to be officially listed as 3,500 RMB per month (no tax due on that) and then to receive an annual (or sometimes monthly) bonus in the form of either cash or stored value cards (which are anonymous for values at least up to 100,000 RMB).

Also bear in mind the very vast majority of Chinese do not work for companies at all (they work in the farms and get paid cash in hand).

Moving cash between banks can be a pain so in fact for large amounts the RMB is often physically transferred but also if you are able to find a branch of one cities local bank in another city the transfer is often free (and btw the 0.5% applies only up to a max of 50 RMB so for very large amounts it can effectively almost nothing).

I'm not saying there is no use for Bitcoin in PRC but quite a few of the commonly listed "use cases" that are very applicable to westerners (such as credit card or Paypal fees) are just not applicable in China.

6524  Economy / Economics / Re: How big is Bitcoin's presence in China? on: March 01, 2012, 04:52:48 AM
Without a doubt "cash is king" in PRC (you see people going in and out of the banks with hundreds of thousands of RMB in bags daily) and the amount of tax paid by most is very little (if any at all). They also have anonymous shopping center "smart cards" which are often traded and can sometimes contain tens of thousands of RMB per card.

Understand that also the cost of banking (in terms of fees) is virtually zero and the cost of making internet purchases on taobao is completely fee free (with the ability to send back or get refunds) so for the vast majority there is really nothing to be gained from Bitcoin apart from perhaps escaping inflation.

I do think that Bitcoin mining is something some internet savvy Chinese would be doing as it is quite likely that they may have access to "free electricity". Smiley
6525  Bitcoin / Development & Technical Discussion / Re: Suggestion for listtransactions change wrt account labels... on: March 01, 2012, 04:43:43 AM
Understand that the main thing I am trying to do is implement a General Ledger application which will work with Bitcoin via bitcoind but I would like it to be compatible also with the GUI.

I am also thinking the changes might need to go a little further with the address map (or "label") entries being added for the "to" address when you do a "sendfrom" via bitcoind.
6526  Bitcoin / Development & Technical Discussion / Re: Suggestion for listtransactions change wrt account labels... on: March 01, 2012, 04:34:45 AM
I guess that my confusion comes from this:

            string account;
            if (pwalletMain->mapAddressBook.count(r.first))
                account = pwalletMain->mapAddressBook[r.first];

this is the code used to provide the "account" in the "receive" category tx's.

I gather now that in fact the string variable is perhaps incorrectly named (should be called "label" I guess).

In that case sure I will change both the optional argument to "tolabel" and will fix up the above code also.
6527  Economy / Economics / Re: How big is Bitcoin's presence in China? on: February 29, 2012, 03:55:01 AM
Of course that dreaded wall is a concern but at least so far I have not seen any blocking of the ports nor of the main websites (perhaps this is just because it is too small to be on the radar yet).

6528  Bitcoin / Development & Technical Discussion / Suggestion for listtransactions change wrt account labels... on: February 29, 2012, 03:41:19 AM
I have only recently started playing with bitcoind (which is most likely the way I intend to use Bitcoin in my own software) and got rather confused with the "account" label when using the "listtransactions" command (see https://bitcointalk.org/index.php?topic=66214.0).

After Pieter Wuille's help I was able to understand that the problem I was seeing was that the GUI displays account labels for Sent tx's that have been assigned to the "sent to" address whereas "listtransactions" only shows account labels for "sent" category tx's that have been assigned to the "from" address (or something at least close to that).

So in short you cannot in any easy way get the same output as you see in the Sent tab in the GUI from bitcoind. My proposal is to add an option to listtransactions so you can get the same output (both "account" output and filtering for "send" category tx's to be taken from the "sent to" address). Note of course this is an option and would by default be false.

The change is to the bitcoinrpc command listtransactions whose usage would become as follows:

listtransactions [account] [count=10] [from=0] [usesenttoaddresses=false]

When usesenttoaddresses is set true then the account mapping for "send" category tx's is to the sent to addr (rather than the current behaviour).

Link for suggested commit changes:
https://github.com/ciyam/bitcoin/commits/opt_use_sent_to_addr_for_acc

I don't have an environment set up for compiling Bitcoin (and am flat out doing other work) so for now I would be grateful for any comments or suggestions with the proposed change.


Cheers,

Ian.
6529  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 28, 2012, 08:46:13 AM
Not sure if any dev is watching this thread but I have made suggested source code changes to bitcoinrpc.cpp from this forked repo branch:

https://github.com/ciyam/bitcoin/tree/opt_use_sent_to_addr_for_acc

As I don't have boost or the time to get it and other libs installed at the moment this has not even been compiled (so I have not submitted a pull request).

If any dev (or anyone else) has enough spare time to at least compile and show any errors in my changes then I'd appreciate it.

The change is to the bitcoinrpc command listtransactions whose usage would become as follows:

listtransactions [account] [count=10] [from=0] [usesenttoaddresses=false]

When usesenttoaddresses is set true then the account mapping for "send" category tx's is to the sent to addr (rather than the current behaviour).

EDIT: Link for  commit changes:
https://github.com/ciyam/bitcoin/commits/opt_use_sent_to_addr_for_acc

I do hope to find more spare time to actually compile and test this myself but unfortunately I don't see that happening for quite a while so once again if anyone else has any spare time to check this I would appreciate it so I can then create a pull request.

EDIT: I will start a new thread in the Development board about this and will put a BTC bounty in that.


Cheers,

Ian.
6530  Other / Off-topic / Re: Business idea (Off-Topic, but looking for feedback) on: February 28, 2012, 05:23:22 AM
Not sure how much you know about the automated freight trains being used in the coal mining industry in Australia but certainly companies like BHP have a lot of money to spend and the resource boom is still going very strongly down under (so maybe some opportunities there).
6531  Other / Off-topic / Re: Business idea (Off-Topic, but looking for feedback) on: February 27, 2012, 03:16:15 PM
(btw, google tells me 350mph ~ 563kph... that's fucking fast! I don't think there's any commercial train in the world running at such speed, is there?)

The Shanghai maglev will reach a top speed of 431 km/h during peak hour trips (only 301 km/h off peak).
6532  Other / Off-topic / Re: Business idea (Off-Topic, but looking for feedback) on: February 27, 2012, 06:51:32 AM
I don't understand, but I think you are thinking that there is only one kind of maglev, or that all maglev costs the same?

I am no expert in the technology or different variations thereof but I do know that China is building high speed railway like no other country on earth so if you can provide a more cost effective means of doing it then you should be doing it there.
6533  Other / Off-topic / Re: Business idea (Off-Topic, but looking for feedback) on: February 27, 2012, 06:43:42 AM
The cost issue with the Chinese system (electromagnet based Transrapid) was that they built it on sandy swampy land, which ended up costing WAY more than necessary.

Yes that is correct, however, it is interesting that the high speed train from Beijing to Tianjin (built years later) which is built on extremely flat and dry land was not done with Maglev (but does run at around 400kmh).

I think that if it was more cost effective then the Chinese would have chosen Maglev instead.
6534  Other / Off-topic / Re: Business idea (Off-Topic, but looking for feedback) on: February 27, 2012, 06:09:07 AM
Living in China I have taken the (AFAIA) only commercial Maglev commuter train (it goes between the airport and the city in Shanghai).

The cost of that rather short line was so expensive that no other Maglev line has been constructed here (and the other high speed trains run nearly as smoothly and not that much slower).

The cost is not due to the trains but the tracks (the accuracy required for Maglev tracks is much greater than for other high speed trains).
6535  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 27, 2012, 05:15:11 AM
Yes - that is the idea and thanks for your help - I will look into implementing this as soon as I have some free time (or if anyone else is interested 1 BTC bounty available).

I think it might be useful especially for people who have started using the GUI and then decide they want to put all their tx's into a general ledger.
6536  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 26, 2012, 08:20:23 AM
If I get some spare time I wouldn't mind working on adding such an option to listtransactions provided that the core developers don't think it would be a bad idea.
6537  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 26, 2012, 07:20:20 AM
Perhaps another possibility might be to add an option for listtransactions that would change the "account" being displayed (and filtered) for "send" categories to actually be the one attached to the external address (as perhaps is how the GUI is working at the moment) ?
6538  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 26, 2012, 05:34:28 AM
Sure the "big picture" is exactly as you describe (having accounts for a general ledger) and I think if "sendfrom" was used (rather than the GUI) then the output I would see from listtransactions would be exactly as I am wanting it to be (with the account showing as the one for each customer).

My mistake was in not understanding what I was seeing (basically the word "account" confusing me and the fact I peeked at the code and just assumed from what I saw there that it was just a simple map).

I was simply wanting to change the output of listtransactions to see a name appear (as I can do in the GUI) but I now gather that is not possible using bitcoind and instead I should use "sendfrom" to have things appear as I wanted them to.

Perhaps there might be an option to be able to specify an account in the send dialog in the GUI down the track?

I am going to write a GL system (for my own business and which will end up as a package in my open source project) which I want to integrate with Bitcoin (other modules would follow the GL such as Payroll). Currently my own tx's were performed via the GUI so the problem I have is that I cannot (using bitcoind) get the "account labels" to match the GUI without doing this externally.
6539  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 26, 2012, 05:11:36 AM
Okay - think I need to do some more thinking about this (and it's starting to hurt).

From what I gather now it seems impossible to make the change I was wanting to see without resorting to have an external DB (which is what I gather the other posters did).
6540  Bitcoin / Bitcoin Technical Support / Re: Why is account showing as empty even after doing a setaccount? on: February 26, 2012, 05:02:57 AM
Well for certain I found the output of listtransactions confusing after playing with getaccount and setaccount (but as originally stated this was my first play with bitcoind).

If doing a "move" would fix the problem I was seeing (simply that I wanted to change the associated account for the unseen from address) then no need to change anything.

Another helpful idea might be to perhaps have the listtransactions output contain both to/from addresses (so you would do a setaccount on the from address of a "send" in order to make the change I was trying to make).

Pages: « 1 ... 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 [327] 328 329 330 331 332 333 334 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!