Bitcoin Forum
June 28, 2024, 12:55:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Bitcoin / Armory / Using Armory CPP or Python to scan blockchain... on: August 22, 2015, 04:08:43 AM
I've been having some fun playing around with Armory code and using the API.  I would like to scan the blockchain and probe it for different statistics of interest.
Mainly, for now, I would like to generate BTC address lists of top balances, etc...  Is there an easy builtin function to do this?  I don't mind if it is with python frontend code or the CPP backend code.  Whichever is easiest and most straightforward.

Thanks in advance for any help.
22  Bitcoin / Armory / Bug Report: BlockDataManager Warning on: June 22, 2015, 06:15:20 AM
I tried to submit the bug through Armory and it gave error.  I went to website and there is no active link under Support.  I am submitting a bug report here.

I get the following error when it syncs at the beginning.  
I have the latest bitcoin and armory client.
I tried rebuilding and restarting.  It worked once.  Then back to same error.

BlockDataManager Warning

DB failed to open, reporting the following error: Failed to open dbi (MDB_INCOMPATIBLE:  Operation and DB, or DB flags changed)


I looked inside log and the only error I see is:  2015-06-22 02:09 (ERROR) -- announcefetch.pyc:312 - Could not verify data in signed message block

UPDATE:  I did a rebuild and scan again.  It seems to have worked for a couple of times now.  So, no problem for now. Problem solved.
It would have been nice to know what happened in case it happens again.  So far, it was twice it happened.
23  Bitcoin / Armory / Re: Armory 0.93 testing release! (with 0.05 BTC bug bounty) on: February 24, 2015, 02:40:45 AM
I got same problem of BDM error box.  It asks me to rebuild and rescan.  I did it twice and it loads once correctly, then after next time same error.
Anyone fix this?
24  Bitcoin / Armory / Re: Building Armory and using Python Examples... on: August 30, 2014, 06:39:09 PM
Hi Etotheipi,

I do commend you on the great product.  Thanks for taking the time to answer some questions.  I appreciate it. 
I totally see your point on choosing python/C++ to develop now. 

I was wondering if the Charles branch's scanning will be as fast as say the way they do it at blockchain.info?  It baffles me how fast a search for some statistic or info is on that engine.  Addresses come up instantaneously, etc... Will Armory have this quick blockchain searching?
Do you know possibly what DB technique they are using and how can this compare to what Armory might have in the near future?


25  Bitcoin / Armory / Re: Building Armory and using Python Examples... on: August 28, 2014, 06:19:27 AM
I was getting nowhere quick using python.  I decided to just use the C++ directly to access blockchain.  I got it working with a little playing around.
There is no in depth explanations to the API, but I kind of modeled my code after the cppblockutils tests.  I got it to compile and I am doing some wallet functions and blockchain searching which is pretty cool.

I am using ARMORY_DB_BARE  mode.  The SUPER one seems to crash in dev branch.  What is the mode that Armory's current version uses?
What do the different modes mean?

Thanks for the help so far.  I enjoy using the C++ backend. 

Do you know why the developer decided to interface python to a C++ backend?  Don't get me wrong, python is great, but why not just keep the app pure C++.  The Qt makes it cross platform GUI-wise anyway.  There is a big jumble of code conversion going on with python to C++. 
Again, I am not knocking the Armory development decision.  It is the best wallet out there.  I've been using it over a year and will not switch.
26  Bitcoin / Armory / Re: Building Armory and using Python Examples... on: August 26, 2014, 07:45:13 PM
Thanks for the help.  I was using the master.  I tried the dev branch and same problem.
The testswig.py in cppforswig has some code that needed to be changed.

from btcarmoryengine import *
must be changed to:
from armoryengine.ALL import *

It runs, however, same swigwin problem:

Traceback (most recent call last):
  File "C:\API\Projects\BitcoinArmory-dev\cppForSwig\testswig.py", line 42, in <module>
    bdm.readBlkFile_FromScratch(blkfile)
  File "..\CppBlockUtils.py", line 1785, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, BlockDataManager_LevelDB, name)
  File "..\CppBlockUtils.py", line 53, in _swig_getattr
    raise AttributeError(name)
AttributeError: readBlkFile_FromScratch

I tried the other examples in "Extras" and some work some don't. 
sample_armory_code.py works, but when I turn on some features in the code(making them True).  I get same get_attr error.

I will give some of the other branches a try. 
27  Bitcoin / Armory / Building Armory and using Python Examples... on: August 25, 2014, 07:16:20 PM
First off, I think Armory is the best wallet. It is the only wallet I use.

Recently, I have been playing around with the python scripting in Armory.  I managed to successfully build Armory from source on windows using VS2013.  I ran Armory from python.  Everything works correctly.

I built Armory exactly with the versions of 32bit tools that were defined by the compiling in windows doc.  I used exact versions of everything.
I am using swigwin2.04 as well.  Compiling and post build process succeeded in 4 successful projects.

Now, when I try running some of the examples you included: 
Specifically testswig.py, examples in extras, and examples in pytest, I get some weird errors.
Some examples run perfectly, however, ones that I want to test like scanning the blockchain for a certain address/wallet fail.

I usually get:

Traceback (most recent call last):
  File "C:\API\Projects\BitcoinArmory\extras\sample_armory_code.py", line 29, in <module>
    cppWallet.addAddress_1_( hex_to_binary('11b366edfc0a8b66feebae5c2e25a7b6a5d1cf31') )  # hash160 (hex)
  File "..\CppBlockUtils.py", line 1690, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, BtcWallet, name)
  File "..\CppBlockUtils.py", line 53, in _swig_getattr
    raise AttributeError(name)
AttributeError: addAddress_1_

OR

(ERROR) Traceback (most recent call last):
  File "C:\API\Projects\BitcoinArmory\extras\sample_armory_code.py", line 83, in <module>
    cppWallet.addAddress_1_( hex_to_binary('0cdcd0f388a31b11ff11b1d8d7a9f978b37bc7af') )
NameError: name 'cppWallet' is not defined

Traceback (most recent call last):
  File "C:\API\Projects\BitcoinArmory\extras\sample_armory_code.py", line 83, in <module>
    cppWallet.addAddress_1_( hex_to_binary('0cdcd0f388a31b11ff11b1d8d7a9f978b37bc7af') )
NameError: name 'cppWallet' is not defined

Basically, I would like a simple working script for scanning blockchain quickly for an address in my local armory blockchain dir.

As an aside, is it possible to use your API without python?  I enjoy using C++ more directly.  But, no matter, I am comfortable just the way you have the python scripting working if it is too much trouble to explain.

Thanks in advance.






28  Economy / Service Announcements / Re: BitcoinWisdom.com - Live Bitcoin/LiteCoin Charts on: May 10, 2014, 08:47:15 PM
Wow!  Thanks incredibly much for the bollinger bands!  Exactly what I needed.

I love your charts!
29  Economy / Service Announcements / Re: BitcoinWisdom.com - Live Bitcoin/LiteCoin Charts on: April 18, 2014, 07:45:51 PM
You have a great chart.  I really like that you added Fibonacci to it.  Excellent.
I like that you've also added some other popular indicators like MACD, etc...  Is it possible if you can add bollinger bands?  I find these extremely useful.
You have the best charts for bitcoin I have seen on the internet so far.  Very responsive and great control on hot keys and mouse roller.  Almost like a standalone app!
Best of all it has the exchange I deal with!

Under tools>drawing>new  I added states but how do I delete ones I do not want?  It seems you can only create.

Keep up amazing work.
Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!