mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Refresh JavaDocs.
This commit is contained in:
parent
c20118d871
commit
ccef45c6c9
@ -31,8 +31,12 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core" target="classFrame">BlockChain</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core" target="classFrame"><I>BlockStore</I></A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core" target="classFrame">BlockStoreException</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core" target="classFrame">DiskBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core" target="classFrame">ECKey</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core" target="classFrame">GetBlocksMessage</A>
|
||||
@ -45,6 +49,8 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core" target="classFrame">InventoryMessage</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core" target="classFrame">MemoryBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core" target="classFrame">Message</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core" target="classFrame">NetworkConnection</A>
|
||||
@ -61,6 +67,10 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core" target="classFrame">ScriptException</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core" target="classFrame">Sha256Hash</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core" target="classFrame">StoredBlock</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core" target="classFrame">Transaction</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Transaction.SigHash.html" title="enum in com.google.bitcoin.core" target="classFrame">Transaction.SigHash</A>
|
||||
|
@ -31,8 +31,12 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core">BlockChain</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><I>BlockStore</I></A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core">BlockStoreException</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core">GetBlocksMessage</A>
|
||||
@ -45,6 +49,8 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core">InventoryMessage</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core">NetworkConnection</A>
|
||||
@ -61,6 +67,10 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core">ScriptException</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<BR>
|
||||
<A HREF="com/google/bitcoin/core/Transaction.SigHash.html" title="enum in com.google.bitcoin.core">Transaction.SigHash</A>
|
||||
|
@ -72,9 +72,9 @@ function windowTitle()
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.google.bitcoin.core.Message">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
@ -123,6 +123,14 @@ A block is the foundation of the BitCoin system. It records a set of <A HREF="..
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Field Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>static int</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Block.html#HEADER_SIZE">HEADER_SIZE</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
How many bytes are required to represent a block header.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="fields_inherited_from_class_com.google.bitcoin.core.Message"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
@ -303,6 +311,27 @@ A block is the foundation of the BitCoin system. It records a set of <A HREF="..
|
||||
|
||||
<P>
|
||||
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
|
||||
<A NAME="field_detail"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Field Detail</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="HEADER_SIZE"><!-- --></A><H3>
|
||||
HEADER_SIZE</H3>
|
||||
<PRE>
|
||||
public static final int <B>HEADER_SIZE</B></PRE>
|
||||
<DL>
|
||||
<DD>How many bytes are required to represent a block header.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.google.bitcoin.core.Block.HEADER_SIZE">Constant Field Values</A></DL>
|
||||
</DL>
|
||||
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
|
||||
<A NAME="constructor_detail"><!-- --></A>
|
||||
@ -610,9 +639,9 @@ public long <B>getNonce</B>()</PRE>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.google.bitcoin.core.Message">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
|
@ -52,7 +52,7 @@ function windowTitle()
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/BlockChain.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="BlockChain.html" target="_top"><B>NO FRAMES</B></A>
|
||||
@ -135,7 +135,7 @@ A BlockChain holds a series of <A HREF="../../../../com/google/bitcoin/core/Bloc
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>protected com.google.bitcoin.core.BlockStore</CODE></FONT></TD>
|
||||
<CODE>protected <A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockChain.html#blockStore">blockStore</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
@ -143,7 +143,7 @@ A BlockChain holds a series of <A HREF="../../../../com/google/bitcoin/core/Bloc
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>protected com.google.bitcoin.core.StoredBlock</CODE></FONT></TD>
|
||||
<CODE>protected <A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockChain.html#chainHead">chainHead</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
@ -176,11 +176,12 @@ A BlockChain holds a series of <A HREF="../../../../com/google/bitcoin/core/Bloc
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockChain.html#BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet)">BlockChain</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
<A HREF="../../../../com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A> wallet)</CODE>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockChain.html#BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet, com.google.bitcoin.core.BlockStore)">BlockChain</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
<A HREF="../../../../com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A> wallet,
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A> blockStore)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
Constructs a BlockChain connected to the given wallet and store.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
@ -202,7 +203,7 @@ A BlockChain holds a series of <A HREF="../../../../com/google/bitcoin/core/Bloc
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> com.google.bitcoin.core.StoredBlock</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockChain.html#getChainHead()">getChainHead</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
@ -242,7 +243,7 @@ A BlockChain holds a series of <A HREF="../../../../com/google/bitcoin/core/Bloc
|
||||
<A NAME="blockStore"><!-- --></A><H3>
|
||||
blockStore</H3>
|
||||
<PRE>
|
||||
protected com.google.bitcoin.core.BlockStore <B>blockStore</B></PRE>
|
||||
protected <A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A> <B>blockStore</B></PRE>
|
||||
<DL>
|
||||
<DD>Keeps a map of block hashes to StoredBlocks.
|
||||
<P>
|
||||
@ -254,7 +255,7 @@ protected com.google.bitcoin.core.BlockStore <B>blockStore</B></PRE>
|
||||
<A NAME="chainHead"><!-- --></A><H3>
|
||||
chainHead</H3>
|
||||
<PRE>
|
||||
protected com.google.bitcoin.core.StoredBlock <B>chainHead</B></PRE>
|
||||
protected <A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A> <B>chainHead</B></PRE>
|
||||
<DL>
|
||||
<DD>Tracks the top of the best known chain.<p>
|
||||
|
||||
@ -297,12 +298,20 @@ protected final <A HREF="../../../../com/google/bitcoin/core/Wallet.html" title=
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet)"><!-- --></A><H3>
|
||||
<A NAME="BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet, com.google.bitcoin.core.BlockStore)"><!-- --></A><H3>
|
||||
BlockChain</H3>
|
||||
<PRE>
|
||||
public <B>BlockChain</B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
<A HREF="../../../../com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A> wallet)</PRE>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A> wallet,
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A> blockStore)</PRE>
|
||||
<DL>
|
||||
<DD>Constructs a BlockChain connected to the given wallet and store. To obtain a <A HREF="../../../../com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core"><CODE>Wallet</CODE></A> you can construct
|
||||
one from scratch, or you can deserialize a saved wallet from disk using <A HREF="../../../../com/google/bitcoin/core/Wallet.html#loadFromFile(java.io.File)"><CODE>Wallet.loadFromFile(java.io.File)</CODE></A>
|
||||
<p>
|
||||
|
||||
For the store you can use a <A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><CODE>MemoryBlockStore</CODE></A> if you don't care about saving the downloaded data, or a
|
||||
<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><CODE>DiskBlockStore</CODE></A> if you'd like to ensure fast startup the next time you run the program.
|
||||
<P>
|
||||
</DL>
|
||||
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
@ -338,7 +347,7 @@ public boolean <B>add</B>(<A HREF="../../../../com/google/bitcoin/core/Block.htm
|
||||
<A NAME="getChainHead()"><!-- --></A><H3>
|
||||
getChainHead</H3>
|
||||
<PRE>
|
||||
public com.google.bitcoin.core.StoredBlock <B>getChainHead</B>()</PRE>
|
||||
public <A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A> <B>getChainHead</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the block at the head of the current best chain. This is the block which represents the greatest
|
||||
amount of cumulative work done.
|
||||
@ -390,7 +399,7 @@ public <A HREF="../../../../com/google/bitcoin/core/Block.html" title="class in
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/BlockChain.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="BlockChain.html" target="_top"><B>NO FRAMES</B></A>
|
||||
|
252
docs/com/google/bitcoin/core/BlockStoreException.html
Normal file
252
docs/com/google/bitcoin/core/BlockStoreException.html
Normal file
@ -0,0 +1,252 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
BlockStoreException
|
||||
</TITLE>
|
||||
|
||||
|
||||
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
||||
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="BlockStoreException";
|
||||
}
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
</NOSCRIPT>
|
||||
|
||||
</HEAD>
|
||||
|
||||
<BODY BGCOLOR="white" onload="windowTitle();">
|
||||
<HR>
|
||||
|
||||
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<A NAME="navbar_top"><!-- --></A>
|
||||
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||||
<TR>
|
||||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||||
<TR ALIGN="center" VALIGN="top">
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/google/bitcoin/core/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||||
</EM>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/BlockStoreException.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="BlockStoreException.html" target="_top"><B>NO FRAMES</B></A>
|
||||
<SCRIPT type="text/javascript">
|
||||
<!--
|
||||
if(window==top) {
|
||||
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||||
}
|
||||
//-->
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||||
</NOSCRIPT>
|
||||
|
||||
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.lang.Throwable">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<HR>
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<H2>
|
||||
<FONT SIZE="-1">
|
||||
com.google.bitcoin.core</FONT>
|
||||
<BR>
|
||||
Class BlockStoreException</H2>
|
||||
<PRE>
|
||||
java.lang.Object
|
||||
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.lang.Throwable
|
||||
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.lang.Exception
|
||||
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.bitcoin.core.BlockStoreException</B>
|
||||
</PRE>
|
||||
<DL>
|
||||
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
<DL>
|
||||
<DT><PRE>public class <B>BlockStoreException</B><DT>extends java.lang.Exception</DL>
|
||||
</PRE>
|
||||
|
||||
<P>
|
||||
Thrown when something goes wrong with storing a block. Examples: out of disk space.
|
||||
<P>
|
||||
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.google.bitcoin.core.BlockStoreException">Serialized Form</A></DL>
|
||||
<HR>
|
||||
|
||||
<P>
|
||||
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
|
||||
<A NAME="constructor_summary"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html#BlockStoreException(java.lang.String)">BlockStoreException</A></B>(java.lang.String message)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html#BlockStoreException(java.lang.Throwable)">BlockStoreException</A></B>(java.lang.Throwable t)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
|
||||
<A NAME="method_summary"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Method Summary</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="methods_inherited_from_class_java.lang.Throwable"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left"><B>Methods inherited from class java.lang.Throwable</B></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE>fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString</CODE></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
|
||||
<A NAME="constructor_detail"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Constructor Detail</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="BlockStoreException(java.lang.String)"><!-- --></A><H3>
|
||||
BlockStoreException</H3>
|
||||
<PRE>
|
||||
public <B>BlockStoreException</B>(java.lang.String message)</PRE>
|
||||
<DL>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="BlockStoreException(java.lang.Throwable)"><!-- --></A><H3>
|
||||
BlockStoreException</H3>
|
||||
<PRE>
|
||||
public <B>BlockStoreException</B>(java.lang.Throwable t)</PRE>
|
||||
<DL>
|
||||
</DL>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<HR>
|
||||
|
||||
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<A NAME="navbar_bottom"><!-- --></A>
|
||||
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||||
<TR>
|
||||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||||
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||||
<TR ALIGN="center" VALIGN="top">
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/google/bitcoin/core/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||||
</EM>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/BlockStoreException.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="BlockStoreException.html" target="_top"><B>NO FRAMES</B></A>
|
||||
<SCRIPT type="text/javascript">
|
||||
<!--
|
||||
if(window==top) {
|
||||
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||||
}
|
||||
//-->
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||||
</NOSCRIPT>
|
||||
|
||||
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.lang.Throwable">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
@ -51,7 +51,7 @@ function windowTitle()
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/ECKey.html" target="_top"><B>FRAMES</B></A>
|
||||
@ -184,6 +184,15 @@ Represents an elliptic curve keypair that we own and can use for signing transac
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> byte[]</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/ECKey.html#toASN1()">toASN1</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by the BitCoin reference
|
||||
implementation in its wallet storage format.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.lang.String</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/ECKey.html#toString()">toString</A></B>()</CODE>
|
||||
|
||||
@ -279,6 +288,23 @@ public static <A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="cl
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="toASN1()"><!-- --></A><H3>
|
||||
toASN1</H3>
|
||||
<PRE>
|
||||
public byte[] <B>toASN1</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by the BitCoin reference
|
||||
implementation in its wallet storage format.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="getPubKeyHash()"><!-- --></A><H3>
|
||||
getPubKeyHash</H3>
|
||||
<PRE>
|
||||
@ -422,7 +448,7 @@ public boolean <B>verify</B>(byte[] data,
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/ECKey.html" target="_top"><B>FRAMES</B></A>
|
||||
|
@ -52,7 +52,7 @@ function windowTitle()
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/InventoryItem.Type.html" title="enum in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/InventoryMessage.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="InventoryMessage.html" target="_top"><B>NO FRAMES</B></A>
|
||||
@ -327,7 +327,7 @@ public void <B>bitcoinSerializeToStream</B>(java.io.OutputStream stream)
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/InventoryItem.Type.html" title="enum in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/InventoryMessage.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="InventoryMessage.html" target="_top"><B>NO FRAMES</B></A>
|
||||
|
@ -51,7 +51,7 @@ function windowTitle()
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/Message.html" target="_top"><B>FRAMES</B></A>
|
||||
@ -360,7 +360,7 @@ public byte[] <B>bitcoinSerialize</B>()</PRE>
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/Message.html" target="_top"><B>FRAMES</B></A>
|
||||
|
@ -119,8 +119,9 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/NetworkConnection.html#NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters)">NetworkConnection</A></B>(java.net.InetAddress remoteIp,
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params)</CODE>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/NetworkConnection.html#NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters, int)">NetworkConnection</A></B>(java.net.InetAddress remoteIp,
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
int bestHeight)</CODE>
|
||||
|
||||
<BR>
|
||||
Connect to the given IP address using the port specified as part of the network parameters.</TD>
|
||||
@ -207,11 +208,12 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters)"><!-- --></A><H3>
|
||||
<A NAME="NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters, int)"><!-- --></A><H3>
|
||||
NetworkConnection</H3>
|
||||
<PRE>
|
||||
public <B>NetworkConnection</B>(java.net.InetAddress remoteIp,
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params)
|
||||
<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
int bestHeight)
|
||||
throws java.io.IOException,
|
||||
<A HREF="../../../../com/google/bitcoin/core/ProtocolException.html" title="class in com.google.bitcoin.core">ProtocolException</A></PRE>
|
||||
<DL>
|
||||
@ -219,7 +221,7 @@ public <B>NetworkConnection</B>(java.net.InetAddress remoteIp,
|
||||
is complete a functioning network channel is set up and running.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Parameters:</B><DD><CODE>remoteIp</CODE> - IP address to connect to. IPv6 is not currently supported by BitCoin.<DD><CODE>params</CODE> - Defines which network to connect to and details of the protocol.
|
||||
<DT><B>Parameters:</B><DD><CODE>remoteIp</CODE> - IP address to connect to. IPv6 is not currently supported by BitCoin.<DD><CODE>params</CODE> - Defines which network to connect to and details of the protocol.<DD><CODE>bestHeight</CODE> - How many blocks are in our best chain
|
||||
<DT><B>Throws:</B>
|
||||
<DD><CODE>java.io.IOException</CODE> - if there is a network related failure.
|
||||
<DD><CODE><A HREF="../../../../com/google/bitcoin/core/ProtocolException.html" title="class in com.google.bitcoin.core">ProtocolException</A></CODE> - if the version negotiation failed.</DL>
|
||||
|
@ -139,8 +139,9 @@ A PeerAddress holds an IP address and port number representing the network locat
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/PeerAddress.html#PeerAddress(java.net.InetAddress, int)">PeerAddress</A></B>(java.net.InetAddress addr,
|
||||
int port)</CODE>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/PeerAddress.html#PeerAddress(java.net.InetAddress, int, int)">PeerAddress</A></B>(java.net.InetAddress addr,
|
||||
int port,
|
||||
int protocolVersion)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
@ -236,11 +237,12 @@ public <B>PeerAddress</B>(<A HREF="../../../../com/google/bitcoin/core/NetworkPa
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="PeerAddress(java.net.InetAddress, int)"><!-- --></A><H3>
|
||||
<A NAME="PeerAddress(java.net.InetAddress, int, int)"><!-- --></A><H3>
|
||||
PeerAddress</H3>
|
||||
<PRE>
|
||||
public <B>PeerAddress</B>(java.net.InetAddress addr,
|
||||
int port)</PRE>
|
||||
int port,
|
||||
int protocolVersion)</PRE>
|
||||
<DL>
|
||||
</DL>
|
||||
|
||||
|
@ -52,7 +52,7 @@ function windowTitle()
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/ScriptException.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="ScriptException.html" target="_top"><B>NO FRAMES</B></A>
|
||||
@ -216,7 +216,7 @@ public <B>ScriptException</B>(java.lang.String msg,
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/ScriptException.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="ScriptException.html" target="_top"><B>NO FRAMES</B></A>
|
||||
|
@ -107,10 +107,9 @@ java.lang.Object
|
||||
These constants are a part of a scriptSig signature on the inputs. They define the details of how a
|
||||
transaction can be redeemed, specifically, they control how the hash of the transaction is calculated.
|
||||
|
||||
Note: in the official client, this enum also has another flag, SIGHASH_ANYONECANPAY. In this implementation,
|
||||
that's kept separate.
|
||||
|
||||
Also note: only SIGHASH_ALL is actually used in the official client today.
|
||||
In the official client, this enum also has another flag, SIGHASH_ANYONECANPAY. In this implementation,
|
||||
that's kept separate. Only SIGHASH_ALL is actually used in the official client today. The other flags
|
||||
exist to allow for distributed contracts.
|
||||
<P>
|
||||
|
||||
<P>
|
||||
|
@ -51,7 +51,7 @@ function windowTitle()
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Transaction.SigHash.html" title="enum in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/Transaction.html" target="_top"><B>FRAMES</B></A>
|
||||
@ -219,7 +219,7 @@ A transaction represents the movement of coins from some addresses to some other
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> byte[]</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Transaction.html#getHash()">getHash</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
@ -393,7 +393,7 @@ public java.util.List<<A HREF="../../../../com/google/bitcoin/core/Transactio
|
||||
<A NAME="getHash()"><!-- --></A><H3>
|
||||
getHash</H3>
|
||||
<PRE>
|
||||
public byte[] <B>getHash</B>()</PRE>
|
||||
public <A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A> <B>getHash</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the transaction hash as you see them in the block explorer.
|
||||
<P>
|
||||
@ -431,8 +431,7 @@ public java.math.BigInteger <B>getValueSentToMe</B>(<A HREF="../../../../com/goo
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>sum in nanocoins</DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
@ -652,7 +651,7 @@ public int <B>hashCode</B>()</PRE>
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><B>PREV CLASS</B></A>
|
||||
<A HREF="../../../../com/google/bitcoin/core/Transaction.SigHash.html" title="enum in com.google.bitcoin.core"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../../../../index.html?com/google/bitcoin/core/Transaction.html" target="_top"><B>FRAMES</B></A>
|
||||
|
@ -119,7 +119,7 @@ A collection of various utility methods that are helpful for working with the Bi
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Utils.html#CENT">CENT</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
How many nanocoins there are in 0.01 BitCoins.</TD>
|
||||
How many "nanocoins" there are in 0.01 BitCoins.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -127,7 +127,7 @@ A collection of various utility methods that are helpful for working with the Bi
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Utils.html#COIN">COIN</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
How many nanocoins there are in a BitCoin.</TD>
|
||||
How many "nanocoins" there are in a BitCoin.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
@ -251,6 +251,14 @@ A collection of various utility methods that are helpful for working with the Bi
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Utils.html#toNanoCoins(int, int)">toNanoCoins</A></B>(int coins,
|
||||
int cents)</CODE>
|
||||
|
||||
<BR>
|
||||
Convert an amount expressed in the way humans are used to into nanocoins.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>static java.math.BigInteger</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Utils.html#toNanoCoins(java.lang.String)">toNanoCoins</A></B>(java.lang.String coins)</CODE>
|
||||
|
||||
<BR>
|
||||
Convert an amount expressed in the way humans are used to into nanocoins.</TD>
|
||||
</TR>
|
||||
@ -320,7 +328,11 @@ COIN</H3>
|
||||
<PRE>
|
||||
public static final java.math.BigInteger <B>COIN</B></PRE>
|
||||
<DL>
|
||||
<DD>How many nanocoins there are in a BitCoin.
|
||||
<DD>How many "nanocoins" there are in a BitCoin.
|
||||
|
||||
A nanocoin is the smallest unit that can be transferred using BitCoin.
|
||||
The term nanocoin is very misleading, though, because there are only 100 million
|
||||
of them in a coin (whereas one would expect 1 billion.
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
@ -332,7 +344,11 @@ CENT</H3>
|
||||
<PRE>
|
||||
public static final java.math.BigInteger <B>CENT</B></PRE>
|
||||
<DL>
|
||||
<DD>How many nanocoins there are in 0.01 BitCoins.
|
||||
<DD>How many "nanocoins" there are in 0.01 BitCoins.
|
||||
|
||||
A nanocoin is the smallest unit that can be transferred using BitCoin.
|
||||
The term nanocoin is very misleading, though, because there are only 100 million
|
||||
of them in a coin (whereas one would expect 1 billion).
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
@ -379,6 +395,24 @@ public static java.math.BigInteger <B>toNanoCoins</B>(int coins,
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="toNanoCoins(java.lang.String)"><!-- --></A><H3>
|
||||
toNanoCoins</H3>
|
||||
<PRE>
|
||||
public static java.math.BigInteger <B>toNanoCoins</B>(java.lang.String coins)</PRE>
|
||||
<DL>
|
||||
<DD>Convert an amount expressed in the way humans are used to into nanocoins.<p>
|
||||
|
||||
This takes string in a format understood by <CODE>BigDecimal.BigDecimal(String)</CODE>,
|
||||
for example "0", "1", "0.10", "1.23E3", "1234.5E-5".
|
||||
<P>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Throws:</B>
|
||||
<DD><CODE>java.lang.ArithmeticException</CODE> - if you try to specify fractional nanocoins</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="uint32ToByteArrayBE(long, byte[], int)"><!-- --></A><H3>
|
||||
uint32ToByteArrayBE</H3>
|
||||
<PRE>
|
||||
|
@ -198,14 +198,15 @@ java.lang.Object
|
||||
<B>Constructor Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters)">VersionMessage</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params)</CODE>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters, byte[])">VersionMessage</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
byte[] msg)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters, byte[])">VersionMessage</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
byte[] msg)</CODE>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters, int)">VersionMessage</A></B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
int newBestHeight)</CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
@ -397,10 +398,11 @@ public <B>VersionMessage</B>(<A HREF="../../../../com/google/bitcoin/core/Networ
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="VersionMessage(com.google.bitcoin.core.NetworkParameters)"><!-- --></A><H3>
|
||||
<A NAME="VersionMessage(com.google.bitcoin.core.NetworkParameters, int)"><!-- --></A><H3>
|
||||
VersionMessage</H3>
|
||||
<PRE>
|
||||
public <B>VersionMessage</B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params)</PRE>
|
||||
public <B>VersionMessage</B>(<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A> params,
|
||||
int newBestHeight)</PRE>
|
||||
<DL>
|
||||
</DL>
|
||||
|
||||
|
@ -131,14 +131,6 @@ A Wallet stores keys and a record of transactions that have not yet been spent.
|
||||
<BR>
|
||||
A list of public/private EC keys owned by this user.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.util.ArrayList<<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#unspent">unspent</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
A list of transactions with outputs we can spend.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
@ -191,11 +183,43 @@ A Wallet stores keys and a record of transactions that have not yet been spent.
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#findKeyFromPubKey(byte[])">findKeyFromPubKey</A></B>(byte[] pubkey)</CODE>
|
||||
|
||||
<BR>
|
||||
Locates a keypair from the keychain given the raw public key bytes.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.math.BigInteger</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#getBalance()">getBalance</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the balance of this wallet in nanocoins by summing up all unspent outputs that were sent to us.</TD>
|
||||
Returns the balance of this wallet by summing up all unspent outputs that were sent to us.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.util.Collection<<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>></CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#getPendingTransactions()">getPendingTransactions</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns an immutable view of the transactions currently waiting for network confirmations.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#isPubKeyHashMine(byte[])">isPubKeyHashMine</A></B>(byte[] pubkeyHash)</CODE>
|
||||
|
||||
<BR>
|
||||
Returns true if this wallet contains a public key which hashes to the given hash.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> boolean</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../../../com/google/bitcoin/core/Wallet.html#isPubKeyMine(byte[])">isPubKeyMine</A></B>(byte[] pubkey)</CODE>
|
||||
|
||||
<BR>
|
||||
Returns true if this wallet contains a keypair with the given public key.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
@ -263,21 +287,6 @@ A Wallet stores keys and a record of transactions that have not yet been spent.
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="unspent"><!-- --></A><H3>
|
||||
unspent</H3>
|
||||
<PRE>
|
||||
public final java.util.ArrayList<<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>> <B>unspent</B></PRE>
|
||||
<DL>
|
||||
<DD>A list of transactions with outputs we can spend. Note that some of these transactions may be partially spent,
|
||||
that is, they have outputs some of which are redeemed and others which aren't already. The spentness of each
|
||||
output is tracked in the TransactionOutput object. The value of all unspent outputs is the balance of the
|
||||
wallet.
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="keychain"><!-- --></A><H3>
|
||||
keychain</H3>
|
||||
<PRE>
|
||||
@ -452,12 +461,61 @@ public <A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="isPubKeyHashMine(byte[])"><!-- --></A><H3>
|
||||
isPubKeyHashMine</H3>
|
||||
<PRE>
|
||||
public boolean <B>isPubKeyHashMine</B>(byte[] pubkeyHash)</PRE>
|
||||
<DL>
|
||||
<DD>Returns true if this wallet contains a public key which hashes to the given hash.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="findKeyFromPubKey(byte[])"><!-- --></A><H3>
|
||||
findKeyFromPubKey</H3>
|
||||
<PRE>
|
||||
public <A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A> <B>findKeyFromPubKey</B>(byte[] pubkey)</PRE>
|
||||
<DL>
|
||||
<DD>Locates a keypair from the keychain given the raw public key bytes.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
|
||||
<DT><B>Returns:</B><DD>ECKey or null if no such key was found.</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="isPubKeyMine(byte[])"><!-- --></A><H3>
|
||||
isPubKeyMine</H3>
|
||||
<PRE>
|
||||
public boolean <B>isPubKeyMine</B>(byte[] pubkey)</PRE>
|
||||
<DL>
|
||||
<DD>Returns true if this wallet contains a keypair with the given public key.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="getBalance()"><!-- --></A><H3>
|
||||
getBalance</H3>
|
||||
<PRE>
|
||||
public java.math.BigInteger <B>getBalance</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns the balance of this wallet in nanocoins by summing up all unspent outputs that were sent to us.
|
||||
<DD>Returns the balance of this wallet by summing up all unspent outputs that were sent to us.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
@ -480,6 +538,22 @@ public java.lang.String <B>toString</B>()</PRE>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
<A NAME="getPendingTransactions()"><!-- --></A><H3>
|
||||
getPendingTransactions</H3>
|
||||
<PRE>
|
||||
public java.util.Collection<<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>> <B>getPendingTransactions</B>()</PRE>
|
||||
<DL>
|
||||
<DD>Returns an immutable view of the transactions currently waiting for network confirmations.
|
||||
<P>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
<DD><DL>
|
||||
</DL>
|
||||
</DD>
|
||||
</DL>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<HR>
|
||||
|
||||
|
@ -15,6 +15,17 @@ com.google.bitcoin.core
|
||||
<BODY BGCOLOR="white">
|
||||
<FONT size="+1" CLASS="FrameTitleFont">
|
||||
<A HREF="../../../../com/google/bitcoin/core/package-summary.html" target="classFrame">com.google.bitcoin.core</A></FONT>
|
||||
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
|
||||
<TR>
|
||||
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
|
||||
Interfaces</FONT>
|
||||
<FONT CLASS="FrameItemFont">
|
||||
<BR>
|
||||
<A HREF="BlockStore.html" title="interface in com.google.bitcoin.core" target="classFrame"><I>BlockStore</I></A></FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
|
||||
<TR>
|
||||
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
|
||||
@ -31,6 +42,8 @@ Classes</FONT>
|
||||
<BR>
|
||||
<A HREF="BlockChain.html" title="class in com.google.bitcoin.core" target="classFrame">BlockChain</A>
|
||||
<BR>
|
||||
<A HREF="DiskBlockStore.html" title="class in com.google.bitcoin.core" target="classFrame">DiskBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="ECKey.html" title="class in com.google.bitcoin.core" target="classFrame">ECKey</A>
|
||||
<BR>
|
||||
<A HREF="GetBlocksMessage.html" title="class in com.google.bitcoin.core" target="classFrame">GetBlocksMessage</A>
|
||||
@ -41,6 +54,8 @@ Classes</FONT>
|
||||
<BR>
|
||||
<A HREF="InventoryMessage.html" title="class in com.google.bitcoin.core" target="classFrame">InventoryMessage</A>
|
||||
<BR>
|
||||
<A HREF="MemoryBlockStore.html" title="class in com.google.bitcoin.core" target="classFrame">MemoryBlockStore</A>
|
||||
<BR>
|
||||
<A HREF="Message.html" title="class in com.google.bitcoin.core" target="classFrame">Message</A>
|
||||
<BR>
|
||||
<A HREF="NetworkConnection.html" title="class in com.google.bitcoin.core" target="classFrame">NetworkConnection</A>
|
||||
@ -53,6 +68,10 @@ Classes</FONT>
|
||||
<BR>
|
||||
<A HREF="Script.html" title="class in com.google.bitcoin.core" target="classFrame">Script</A>
|
||||
<BR>
|
||||
<A HREF="Sha256Hash.html" title="class in com.google.bitcoin.core" target="classFrame">Sha256Hash</A>
|
||||
<BR>
|
||||
<A HREF="StoredBlock.html" title="class in com.google.bitcoin.core" target="classFrame">StoredBlock</A>
|
||||
<BR>
|
||||
<A HREF="Transaction.html" title="class in com.google.bitcoin.core" target="classFrame">Transaction</A>
|
||||
<BR>
|
||||
<A HREF="TransactionInput.html" title="class in com.google.bitcoin.core" target="classFrame">TransactionInput</A>
|
||||
|
@ -79,6 +79,20 @@ function windowTitle()
|
||||
Package com.google.bitcoin.core
|
||||
</H2>
|
||||
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Interface Summary</B></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A></B></TD>
|
||||
<TD>An implementor of BlockStore saves StoredBlock objects to disk.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
@ -106,6 +120,10 @@ Package com.google.bitcoin.core
|
||||
chain follows the rules of the <A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><CODE>NetworkParameters</CODE></A> for this chain.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A></B></TD>
|
||||
<TD>Stores the block chain to disk but still holds it in memory.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A></B></TD>
|
||||
<TD>Represents an elliptic curve keypair that we own and can use for signing transactions.</TD>
|
||||
</TR>
|
||||
@ -126,6 +144,10 @@ Package com.google.bitcoin.core
|
||||
<TD> </TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A></B></TD>
|
||||
<TD>Keeps <A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><CODE>StoredBlock</CODE></A>s in memory.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A></B></TD>
|
||||
<TD>A Message is a data structure that can be serialized/deserialized using both the BitCoin proprietary serialization
|
||||
format and built-in Java object serialization.</TD>
|
||||
@ -152,6 +174,16 @@ Package com.google.bitcoin.core
|
||||
<TD>BitCoin transactions don't specify what they do directly.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A></B></TD>
|
||||
<TD>A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, allowing it to be used as keys in a
|
||||
map.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A></B></TD>
|
||||
<TD>Wraps a <A HREF="../../../../com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><CODE>Block</CODE></A> object with extra data that can be derived from the block chain but is slow or inconvenient to
|
||||
calculate.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A></B></TD>
|
||||
<TD>A transaction represents the movement of coins from some addresses to some other addresses.</TD>
|
||||
</TR>
|
||||
|
@ -85,8 +85,10 @@ Class Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Object<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core"><B>Address</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Base58.html" title="class in com.google.bitcoin.core"><B>Base58</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core"><B>BlockChain</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core"><B>ECKey</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/InventoryItem.html" title="class in com.google.bitcoin.core"><B>InventoryItem</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>Message</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core"><B>Address</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Base58.html" title="class in com.google.bitcoin.core"><B>Base58</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core"><B>BlockChain</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>DiskBlockStore</B></A> (implements com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core"><B>ECKey</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/InventoryItem.html" title="class in com.google.bitcoin.core"><B>InventoryItem</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>MemoryBlockStore</B></A> (implements com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>Message</B></A> (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/AddressMessage.html" title="class in com.google.bitcoin.core"><B>AddressMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><B>Block</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core"><B>GetBlocksMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/GetDataMessage.html" title="class in com.google.bitcoin.core"><B>GetDataMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core"><B>InventoryMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/PeerAddress.html" title="class in com.google.bitcoin.core"><B>PeerAddress</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core"><B>Transaction</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/TransactionInput.html" title="class in com.google.bitcoin.core"><B>TransactionInput</B></A> (implements java.io.Serializable)
|
||||
@ -94,7 +96,9 @@ Class Hierarchy
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/TransactionOutput.html" title="class in com.google.bitcoin.core"><B>TransactionOutput</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/UnknownMessage.html" title="class in com.google.bitcoin.core"><B>UnknownMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core"><B>VersionMessage</B></A></UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NetworkConnection</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><B>NetworkParameters</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core"><B>Peer</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>Script</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core"><B>Peer</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>Script</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core"><B>Sha256Hash</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><B>StoredBlock</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Exception<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/AddressFormatException.html" title="class in com.google.bitcoin.core"><B>AddressFormatException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>BlockStoreException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/ProtocolException.html" title="class in com.google.bitcoin.core"><B>ProtocolException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core"><B>ScriptException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/VerificationException.html" title="class in com.google.bitcoin.core"><B>VerificationException</B></A></UL>
|
||||
@ -103,6 +107,11 @@ Class Hierarchy
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/WalletEventListener.html" title="class in com.google.bitcoin.core"><B>WalletEventListener</B></A></UL>
|
||||
</UL>
|
||||
<H2>
|
||||
Interface Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="../../../../com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>BlockStore</B></A></UL>
|
||||
<H2>
|
||||
Enum Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
|
@ -94,6 +94,24 @@ com.google.*</FONT></TH>
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="3">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="com.google.bitcoin.core.Block.HEADER_SIZE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="com/google/bitcoin/core/Block.html#HEADER_SIZE">HEADER_SIZE</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>80</CODE></TD>
|
||||
</TR>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="3">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A></TH>
|
||||
|
@ -156,15 +156,21 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>Constructs a block object from the BitCoin wire format.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core"><B>BlockChain</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A BlockChain holds a series of <A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><CODE>Block</CODE></A> objects, links them together, and knows how to verify that the
|
||||
chain follows the rules of the <A HREF="./com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><CODE>NetworkParameters</CODE></A> for this chain.<DT><A HREF="./com/google/bitcoin/core/BlockChain.html#BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet)"><B>BlockChain(NetworkParameters, Wallet)</B></A> -
|
||||
chain follows the rules of the <A HREF="./com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><CODE>NetworkParameters</CODE></A> for this chain.<DT><A HREF="./com/google/bitcoin/core/BlockChain.html#BlockChain(com.google.bitcoin.core.NetworkParameters, com.google.bitcoin.core.Wallet, com.google.bitcoin.core.BlockStore)"><B>BlockChain(NetworkParameters, Wallet, BlockStore)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core">BlockChain</A>
|
||||
<DD>
|
||||
<DD>Constructs a BlockChain connected to the given wallet and store.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockChain.html#blockStore"><B>blockStore</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core">BlockChain</A>
|
||||
<DD>Keeps a map of block hashes to StoredBlocks.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>BlockStoreException</B></A> - Exception in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>Thrown when something goes wrong with storing a block.<DT><A HREF="./com/google/bitcoin/core/BlockStoreException.html#BlockStoreException()"><B>BlockStoreException()</B></A> -
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>BlockStore</B></A> - Interface in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>An implementor of BlockStore saves StoredBlock objects to disk.<DT><A HREF="./com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>BlockStoreException</B></A> - Exception in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>Thrown when something goes wrong with storing a block.<DT><A HREF="./com/google/bitcoin/core/BlockStoreException.html#BlockStoreException(java.lang.String)"><B>BlockStoreException(String)</B></A> -
|
||||
Constructor for exception com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core">BlockStoreException</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStoreException.html#BlockStoreException(java.lang.Throwable)"><B>BlockStoreException(Throwable)</B></A> -
|
||||
Constructor for exception com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core">BlockStoreException</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#build(com.google.bitcoin.core.Block)"><B>build(Block)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Message.html#bytes"><B>bytes</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<DD>
|
||||
@ -178,7 +184,7 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
<DL>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#CENT"><B>CENT</B></A> -
|
||||
Static variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>How many nanocoins there are in 0.01 BitCoins.
|
||||
<DD>How many "nanocoins" there are in 0.01 BitCoins.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockChain.html#chainHead"><B>chainHead</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core">BlockChain</A>
|
||||
<DD>Tracks the top of the best known chain.
|
||||
@ -190,7 +196,7 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block
|
||||
<DD>Returns a copy of the block, but without any transactions.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#COIN"><B>COIN</B></A> -
|
||||
Static variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>How many nanocoins there are in a BitCoin.
|
||||
<DD>How many "nanocoins" there are in a BitCoin.
|
||||
<DT><A HREF="./com/google/bitcoin/core/package-summary.html"><B>com.google.bitcoin.core</B></A> - package com.google.bitcoin.core<DD> <DT><A HREF="./com/google/bitcoin/core/Message.html#cursor"><B>cursor</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<DD>
|
||||
@ -208,6 +214,9 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
<DT><A HREF="./com/google/bitcoin/core/Peer.html#disconnect()"><B>disconnect()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core">Peer</A>
|
||||
<DD>Terminates the network connection and stops the background thread.
|
||||
<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>DiskBlockStore</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>Stores the block chain to disk but still holds it in memory.<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html#DiskBlockStore(com.google.bitcoin.core.NetworkParameters, java.io.File)"><B>DiskBlockStore(NetworkParameters, File)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#doubleDigest(byte[])"><B>doubleDigest(byte[])</B></A> -
|
||||
Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>See <A HREF="./com/google/bitcoin/core/Utils.html#doubleDigest(byte[], int, int)"><CODE>Utils.doubleDigest(byte[],int,int)</CODE></A>.
|
||||
@ -246,6 +255,12 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Addre
|
||||
<DT><A HREF="./com/google/bitcoin/core/Block.html#equals(java.lang.Object)"><B>equals(Object)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html#equals(java.lang.Object)"><B>equals(Object)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<DD>Returns true if the hashes are equal.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#equals(java.lang.Object)"><B>equals(Object)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Transaction.html#equals(java.lang.Object)"><B>equals(Object)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<DD>
|
||||
@ -257,6 +272,9 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Trans
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#findKeyFromPubHash(byte[])"><B>findKeyFromPubHash(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Locates a keypair from the keychain given the hash of the public key.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#findKeyFromPubKey(byte[])"><B>findKeyFromPubKey(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Locates a keypair from the keychain given the raw public key bytes.
|
||||
<DT><A HREF="./com/google/bitcoin/core/ECKey.html#fromASN1(byte[])"><B>fromASN1(byte[])</B></A> -
|
||||
Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A>
|
||||
<DD>Construct an ECKey from an ASN.1 encoded private key.
|
||||
@ -268,9 +286,18 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
<DT><A HREF="./com/google/bitcoin/core/NetworkParameters.html#genesisBlock"><B>genesisBlock</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core">NetworkParameters</A>
|
||||
<DD>Genesis block for this chain.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStore.html#get(byte[])"><B>get(byte[])</B></A> -
|
||||
Method in interface com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>
|
||||
<DD>Returns the StoredBlock given a hash.
|
||||
<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html#get(byte[])"><B>get(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html#get(byte[])"><B>get(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#getBalance()"><B>getBalance()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Returns the balance of this wallet in nanocoins by summing up all unspent outputs that were sent to us.
|
||||
<DD>Returns the balance of this wallet by summing up all unspent outputs that were sent to us.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Peer.html#getBlock(byte[])"><B>getBlock(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core">Peer</A>
|
||||
<DD>Asks the connected peer for the block of the given hash, and returns a Future representing the answer.
|
||||
@ -280,6 +307,18 @@ Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockChain.html#getChainHead()"><B>getChainHead()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core">BlockChain</A>
|
||||
<DD>Returns the block at the head of the current best chain.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStore.html#getChainHead()"><B>getChainHead()</B></A> -
|
||||
Method in interface com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>
|
||||
<DD>Returns the <A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><CODE>StoredBlock</CODE></A> that represents the top of the chain of greatest total work.
|
||||
<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html#getChainHead()"><B>getChainHead()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html#getChainHead()"><B>getChainHead()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#getChainWork()"><B>getChainWork()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>The total sum of work done in this block, and all the blocks below it in the chain.
|
||||
<DT><A HREF="./com/google/bitcoin/core/GetDataMessage.html" title="class in com.google.bitcoin.core"><B>GetDataMessage</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD> <DT><A HREF="./com/google/bitcoin/core/GetDataMessage.html#GetDataMessage(com.google.bitcoin.core.NetworkParameters, byte[])"><B>GetDataMessage(NetworkParameters, byte[])</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/GetDataMessage.html" title="class in com.google.bitcoin.core">GetDataMessage</A>
|
||||
<DD>
|
||||
@ -311,6 +350,12 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block
|
||||
<DT><A HREF="./com/google/bitcoin/core/Transaction.html#getHashAsString()"><B>getHashAsString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#getHeader()"><B>getHeader()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>The block header this object wraps.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#getHeight()"><B>getHeight()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>Position in the chain for this block.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Transaction.html#getInputs()"><B>getInputs()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<DD>Returns a read-only list of the inputs of this transaction.
|
||||
@ -321,6 +366,12 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>Returns the nonce, an arbitrary value that exists only to make the hash of the block header fall below the
|
||||
difficulty target.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#getPendingTransactions()"><B>getPendingTransactions()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Returns an immutable view of the transactions currently waiting for network confirmations.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#getPrev(com.google.bitcoin.core.BlockStore)"><B>getPrev(BlockStore)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>Given a block store, looks up the previous block in this chain.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Block.html#getPrevBlockHash()"><B>getPrevBlockHash()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>Returns the hash of the previous block in the chain, as defined by the block header.
|
||||
@ -388,15 +439,27 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Versi
|
||||
<DT><A HREF="./com/google/bitcoin/core/InventoryItem.html#hash"><B>hash</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/InventoryItem.html" title="class in com.google.bitcoin.core">InventoryItem</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html#hash"><B>hash</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Address.html#hashCode()"><B>hashCode()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core">Address</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Block.html#hashCode()"><B>hashCode()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html#hashCode()"><B>hashCode()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<DD>Hash code of the byte array as calculated by <CODE>Object.hashCode()</CODE>.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#hashCode()"><B>hashCode()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Transaction.html#hashCode()"><B>hashCode()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Block.html#HEADER_SIZE"><B>HEADER_SIZE</B></A> -
|
||||
Static variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A>
|
||||
<DD>How many bytes are required to represent a block header.
|
||||
</DL>
|
||||
<HR>
|
||||
<A NAME="_I_"><!-- --></A><H2>
|
||||
@ -426,6 +489,12 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
<DT><A HREF="./com/google/bitcoin/core/TransactionOutput.html#isMine(com.google.bitcoin.core.Wallet)"><B>isMine(Wallet)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/TransactionOutput.html" title="class in com.google.bitcoin.core">TransactionOutput</A>
|
||||
<DD>Returns true if this output is to an address we have the keys for in the wallet.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#isPubKeyHashMine(byte[])"><B>isPubKeyHashMine(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Returns true if this wallet contains a public key which hashes to the given hash.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#isPubKeyMine(byte[])"><B>isPubKeyMine(byte[])</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Returns true if this wallet contains a keypair with the given public key.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Script.html#isSentToIP()"><B>isSentToIP()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core">Script</A>
|
||||
<DD>Returns true if this transaction is of a format that means it was a direct IP to IP transaction.
|
||||
@ -471,10 +540,16 @@ Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Ver
|
||||
<DT><A HREF="./com/google/bitcoin/core/Message.html#MAX_SIZE"><B>MAX_SIZE</B></A> -
|
||||
Static variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>MemoryBlockStore</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>Keeps <A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><CODE>StoredBlock</CODE></A>s in memory.<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html#MemoryBlockStore(com.google.bitcoin.core.NetworkParameters)"><B>MemoryBlockStore(NetworkParameters)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>Message</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A Message is a data structure that can be serialized/deserialized using both the BitCoin proprietary serialization
|
||||
format and built-in Java object serialization.<DT><A HREF="./com/google/bitcoin/core/Message.html#Message()"><B>Message()</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<DD>This exists for the Java serialization framework to use only.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#moreWorkThan(com.google.bitcoin.core.StoredBlock)"><B>moreWorkThan(StoredBlock)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>Returns true if this objects chainWork is higher than the others.
|
||||
<DT><A HREF="./com/google/bitcoin/core/VersionMessage.html#myAddr"><B>myAddr</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core">VersionMessage</A>
|
||||
<DD>What the other side believes the address of this program is.
|
||||
@ -483,7 +558,7 @@ Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Ver
|
||||
<A NAME="_N_"><!-- --></A><H2>
|
||||
<B>N</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="./com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NetworkConnection</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A NetworkConnection handles talking to a remote BitCoin peer at a low level.<DT><A HREF="./com/google/bitcoin/core/NetworkConnection.html#NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters)"><B>NetworkConnection(InetAddress, NetworkParameters)</B></A> -
|
||||
<DT><A HREF="./com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NetworkConnection</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A NetworkConnection handles talking to a remote BitCoin peer at a low level.<DT><A HREF="./com/google/bitcoin/core/NetworkConnection.html#NetworkConnection(java.net.InetAddress, com.google.bitcoin.core.NetworkParameters, int)"><B>NetworkConnection(InetAddress, NetworkParameters, int)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core">NetworkConnection</A>
|
||||
<DD>Connect to the given IP address using the port specified as part of the network parameters.
|
||||
<DT><A HREF="./com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><B>NetworkParameters</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>NetworkParameters contains the data needed for working with an instantiation of a BitCoin chain.<DT><A HREF="./com/google/bitcoin/core/NetworkParameters.html#NetworkParameters()"><B>NetworkParameters()</B></A> -
|
||||
@ -566,7 +641,7 @@ Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core
|
||||
a peer in the BitCoin P2P network.<DT><A HREF="./com/google/bitcoin/core/PeerAddress.html#PeerAddress(com.google.bitcoin.core.NetworkParameters, byte[], int, int)"><B>PeerAddress(NetworkParameters, byte[], int, int)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/PeerAddress.html" title="class in com.google.bitcoin.core">PeerAddress</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/PeerAddress.html#PeerAddress(java.net.InetAddress, int)"><B>PeerAddress(InetAddress, int)</B></A> -
|
||||
<DT><A HREF="./com/google/bitcoin/core/PeerAddress.html#PeerAddress(java.net.InetAddress, int, int)"><B>PeerAddress(InetAddress, int, int)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/PeerAddress.html" title="class in com.google.bitcoin.core">PeerAddress</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/NetworkConnection.html#ping()"><B>ping()</B></A> -
|
||||
@ -596,6 +671,15 @@ Constructor for exception com.google.bitcoin.core.<A HREF="./com/google/bitcoin/
|
||||
<DT><A HREF="./com/google/bitcoin/core/Message.html#protocolVersion"><B>protocolVersion</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core">Message</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStore.html#put(com.google.bitcoin.core.StoredBlock)"><B>put(StoredBlock)</B></A> -
|
||||
Method in interface com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>
|
||||
<DD>Saves the given block header+extra data.
|
||||
<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html#put(com.google.bitcoin.core.StoredBlock)"><B>put(StoredBlock)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html#put(com.google.bitcoin.core.StoredBlock)"><B>put(StoredBlock)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<DD>
|
||||
</DL>
|
||||
<HR>
|
||||
<A NAME="_R_"><!-- --></A><H2>
|
||||
@ -636,9 +720,22 @@ Constructor for exception com.google.bitcoin.core.<A HREF="./com/google/bitcoin/
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#sendCoins(com.google.bitcoin.core.Peer, com.google.bitcoin.core.Address, java.math.BigInteger)"><B>sendCoins(Peer, Address, BigInteger)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>Sends coins to the given address, via the given <A HREF="./com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core"><CODE>Peer</CODE></A>.
|
||||
<DT><A HREF="./com/google/bitcoin/core/BlockStore.html#setChainHead(com.google.bitcoin.core.StoredBlock)"><B>setChainHead(StoredBlock)</B></A> -
|
||||
Method in interface com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>
|
||||
<DD>Sets the <A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><CODE>StoredBlock</CODE></A> that represents the top of the chain of greatest total work.
|
||||
<DT><A HREF="./com/google/bitcoin/core/DiskBlockStore.html#setChainHead(com.google.bitcoin.core.StoredBlock)"><B>setChainHead(StoredBlock)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core">DiskBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/MemoryBlockStore.html#setChainHead(com.google.bitcoin.core.StoredBlock)"><B>setChainHead(StoredBlock)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core">MemoryBlockStore</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Script.html#setTracing(boolean)"><B>setTracing(boolean)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core">Script</A>
|
||||
<DD>If true, running a program will log its instructions.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core"><B>Sha256Hash</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, allowing it to be used as keys in a
|
||||
map.<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html#Sha256Hash(byte[])"><B>Sha256Hash(byte[])</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#sha256hash160(byte[])"><B>sha256hash160(byte[])</B></A> -
|
||||
Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>Calculates RIPEMD160(SHA256(input)).
|
||||
@ -657,6 +754,10 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Peer.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Peer.html#startBlockChainDownload()"><B>startBlockChainDownload()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core">Peer</A>
|
||||
<DD>Starts an asynchronous download of the block chain.
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><B>StoredBlock</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>Wraps a <A HREF="./com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><CODE>Block</CODE></A> object with extra data that can be derived from the block chain but is slow or inconvenient to
|
||||
calculate.<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#StoredBlock(com.google.bitcoin.core.Block, java.math.BigInteger, int)"><B>StoredBlock(Block, BigInteger, int)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/VersionMessage.html#subVer"><B>subVer</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core">VersionMessage</A>
|
||||
<DD>An additional string that today the official client sets to the empty string.
|
||||
@ -680,9 +781,16 @@ Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Ver
|
||||
<DT><A HREF="./com/google/bitcoin/core/ECKey.html#toAddress(com.google.bitcoin.core.NetworkParameters)"><B>toAddress(NetworkParameters)</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A>
|
||||
<DD>Returns the address that corresponds to the public part of this ECKey.
|
||||
<DT><A HREF="./com/google/bitcoin/core/ECKey.html#toASN1()"><B>toASN1()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core">ECKey</A>
|
||||
<DD>Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by the BitCoin reference
|
||||
implementation in its wallet storage format.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#toNanoCoins(int, int)"><B>toNanoCoins(int, int)</B></A> -
|
||||
Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>Convert an amount expressed in the way humans are used to into nanocoins.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html#toNanoCoins(java.lang.String)"><B>toNanoCoins(String)</B></A> -
|
||||
Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>Convert an amount expressed in the way humans are used to into nanocoins.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Address.html#toString()"><B>toString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core">Address</A>
|
||||
<DD>
|
||||
@ -710,6 +818,12 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/PeerA
|
||||
<DT><A HREF="./com/google/bitcoin/core/Script.html#toString()"><B>toString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core">Script</A>
|
||||
<DD>Returns the program opcodes as a string, for example "[1234] DUP HAHS160"
|
||||
<DT><A HREF="./com/google/bitcoin/core/Sha256Hash.html#toString()"><B>toString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">Sha256Hash</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/StoredBlock.html#toString()"><B>toString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">StoredBlock</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Transaction.html#toString()"><B>toString()</B></A> -
|
||||
Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core">Transaction</A>
|
||||
<DD>
|
||||
@ -764,9 +878,6 @@ Static method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/cor
|
||||
<DT><A HREF="./com/google/bitcoin/core/UnknownMessage.html" title="class in com.google.bitcoin.core"><B>UnknownMessage</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD> <DT><A HREF="./com/google/bitcoin/core/UnknownMessage.html#UnknownMessage(com.google.bitcoin.core.NetworkParameters, java.lang.String, byte[])"><B>UnknownMessage(NetworkParameters, String, byte[])</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/UnknownMessage.html" title="class in com.google.bitcoin.core">UnknownMessage</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/Wallet.html#unspent"><B>unspent</B></A> -
|
||||
Variable in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Wallet.html" title="class in com.google.bitcoin.core">Wallet</A>
|
||||
<DD>A list of transactions with outputs we can spend.
|
||||
<DT><A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core"><B>Utils</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD>A collection of various utility methods that are helpful for working with the BitCoin protocol.<DT><A HREF="./com/google/bitcoin/core/Utils.html#Utils()"><B>Utils()</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Utils.html" title="class in com.google.bitcoin.core">Utils</A>
|
||||
<DD>
|
||||
@ -817,7 +928,7 @@ Method in class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/Trans
|
||||
<DT><A HREF="./com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core"><B>VersionMessage</B></A> - Class in <A HREF="./com/google/bitcoin/core/package-summary.html">com.google.bitcoin.core</A><DD> <DT><A HREF="./com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters, byte[])"><B>VersionMessage(NetworkParameters, byte[])</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core">VersionMessage</A>
|
||||
<DD>
|
||||
<DT><A HREF="./com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters)"><B>VersionMessage(NetworkParameters)</B></A> -
|
||||
<DT><A HREF="./com/google/bitcoin/core/VersionMessage.html#VersionMessage(com.google.bitcoin.core.NetworkParameters, int)"><B>VersionMessage(NetworkParameters, int)</B></A> -
|
||||
Constructor for class com.google.bitcoin.core.<A HREF="./com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core">VersionMessage</A>
|
||||
<DD>
|
||||
</DL>
|
||||
|
@ -87,8 +87,10 @@ Class Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Object<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core"><B>Address</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Base58.html" title="class in com.google.bitcoin.core"><B>Base58</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core"><B>BlockChain</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core"><B>ECKey</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/InventoryItem.html" title="class in com.google.bitcoin.core"><B>InventoryItem</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>Message</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Address.html" title="class in com.google.bitcoin.core"><B>Address</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Base58.html" title="class in com.google.bitcoin.core"><B>Base58</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockChain.html" title="class in com.google.bitcoin.core"><B>BlockChain</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/DiskBlockStore.html" title="class in com.google.bitcoin.core"><B>DiskBlockStore</B></A> (implements com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/ECKey.html" title="class in com.google.bitcoin.core"><B>ECKey</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/InventoryItem.html" title="class in com.google.bitcoin.core"><B>InventoryItem</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/MemoryBlockStore.html" title="class in com.google.bitcoin.core"><B>MemoryBlockStore</B></A> (implements com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core">BlockStore</A>)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Message.html" title="class in com.google.bitcoin.core"><B>Message</B></A> (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/AddressMessage.html" title="class in com.google.bitcoin.core"><B>AddressMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core"><B>Block</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/GetBlocksMessage.html" title="class in com.google.bitcoin.core"><B>GetBlocksMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/GetDataMessage.html" title="class in com.google.bitcoin.core"><B>GetDataMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/InventoryMessage.html" title="class in com.google.bitcoin.core"><B>InventoryMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/PeerAddress.html" title="class in com.google.bitcoin.core"><B>PeerAddress</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Transaction.html" title="class in com.google.bitcoin.core"><B>Transaction</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/TransactionInput.html" title="class in com.google.bitcoin.core"><B>TransactionInput</B></A> (implements java.io.Serializable)
|
||||
@ -96,7 +98,9 @@ Class Hierarchy
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/TransactionOutput.html" title="class in com.google.bitcoin.core"><B>TransactionOutput</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/UnknownMessage.html" title="class in com.google.bitcoin.core"><B>UnknownMessage</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/VersionMessage.html" title="class in com.google.bitcoin.core"><B>VersionMessage</B></A></UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/NetworkConnection.html" title="class in com.google.bitcoin.core"><B>NetworkConnection</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/NetworkParameters.html" title="class in com.google.bitcoin.core"><B>NetworkParameters</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core"><B>Peer</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>Script</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Peer.html" title="class in com.google.bitcoin.core"><B>Peer</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Script.html" title="class in com.google.bitcoin.core"><B>Script</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core"><B>Sha256Hash</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core"><B>StoredBlock</B></A> (implements java.io.Serializable)
|
||||
<LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Exception<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/AddressFormatException.html" title="class in com.google.bitcoin.core"><B>AddressFormatException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockStoreException.html" title="class in com.google.bitcoin.core"><B>BlockStoreException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/ProtocolException.html" title="class in com.google.bitcoin.core"><B>ProtocolException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/ScriptException.html" title="class in com.google.bitcoin.core"><B>ScriptException</B></A><LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/VerificationException.html" title="class in com.google.bitcoin.core"><B>VerificationException</B></A></UL>
|
||||
@ -105,6 +109,11 @@ Class Hierarchy
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/WalletEventListener.html" title="class in com.google.bitcoin.core"><B>WalletEventListener</B></A></UL>
|
||||
</UL>
|
||||
<H2>
|
||||
Interface Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">com.google.bitcoin.core.<A HREF="com/google/bitcoin/core/BlockStore.html" title="interface in com.google.bitcoin.core"><B>BlockStore</B></A></UL>
|
||||
<H2>
|
||||
Enum Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
|
@ -565,6 +565,81 @@ long <B>time</B></PRE>
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
<A NAME="com.google.bitcoin.core.Sha256Hash"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Class <A HREF="com/google/bitcoin/core/Sha256Hash.html" title="class in com.google.bitcoin.core">com.google.bitcoin.core.Sha256Hash</A> extends java.lang.Object implements Serializable</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
<A NAME="serializedForm"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Serialized Fields</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<H3>
|
||||
hash</H3>
|
||||
<PRE>
|
||||
byte[] <B>hash</B></PRE>
|
||||
<DL>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
|
||||
<P>
|
||||
<A NAME="com.google.bitcoin.core.StoredBlock"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Class <A HREF="com/google/bitcoin/core/StoredBlock.html" title="class in com.google.bitcoin.core">com.google.bitcoin.core.StoredBlock</A> extends java.lang.Object implements Serializable</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
<B>serialVersionUID: </B>-6097565241243701771L
|
||||
|
||||
<P>
|
||||
<A NAME="serializedForm"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||
<B>Serialized Fields</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<H3>
|
||||
header</H3>
|
||||
<PRE>
|
||||
<A HREF="com/google/bitcoin/core/Block.html" title="class in com.google.bitcoin.core">Block</A> <B>header</B></PRE>
|
||||
<DL>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
chainWork</H3>
|
||||
<PRE>
|
||||
java.math.BigInteger <B>chainWork</B></PRE>
|
||||
<DL>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
height</H3>
|
||||
<PRE>
|
||||
int <B>height</B></PRE>
|
||||
<DL>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
|
||||
<P>
|
||||
<A NAME="com.google.bitcoin.core.Transaction"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
@ -621,6 +696,15 @@ long <B>lockTime</B></PRE>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
appearsIn</H3>
|
||||
<PRE>
|
||||
java.util.Set<E> <B>appearsIn</B></PRE>
|
||||
<DL>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
|
||||
<P>
|
||||
<A NAME="com.google.bitcoin.core.TransactionInput"><!-- --></A>
|
||||
@ -929,7 +1013,7 @@ long <B>bestHeight</B></PRE>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
<B>serialVersionUID: </B>-4501424466753895784L
|
||||
<B>serialVersionUID: </B>2L
|
||||
|
||||
<P>
|
||||
<A NAME="serialized_methods"><!-- --></A>
|
||||
@ -964,26 +1048,65 @@ private void <B>readObject</B>(java.io.ObjectInputStream in)
|
||||
</TABLE>
|
||||
|
||||
<H3>
|
||||
unspent</H3>
|
||||
pending</H3>
|
||||
<PRE>
|
||||
java.util.ArrayList<E> <B>unspent</B></PRE>
|
||||
java.util.Map<K,V> <B>pending</B></PRE>
|
||||
<DL>
|
||||
<DD>A list of transactions with outputs we can spend. Note that some of these transactions may be partially spent,
|
||||
that is, they have outputs some of which are redeemed and others which aren't already. The spentness of each
|
||||
output is tracked in the TransactionOutput object. The value of all unspent outputs is the balance of the
|
||||
wallet.
|
||||
<DD>Map of txhash->Transactions that have not made it into the best chain yet. These transactions inputs count as
|
||||
spent for the purposes of calculating our balance but their outputs are not available for spending yet. This
|
||||
means after a spend, our balance can actually go down temporarily before going up again!
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
fullySpent</H3>
|
||||
unspent</H3>
|
||||
<PRE>
|
||||
java.util.LinkedList<E> <B>fullySpent</B></PRE>
|
||||
java.util.Map<K,V> <B>unspent</B></PRE>
|
||||
<DL>
|
||||
<DD>When all the outputs of a transaction are spent, it gets put here. These transactions aren't useful for
|
||||
anything except record keeping and presentation to the user.
|
||||
<DD>Map of txhash->Transactions where the Transaction has unspent outputs. These are transactions we can use
|
||||
to pay other people and so count towards our balance. Transactions only appear in this map if they are part
|
||||
of the best chain. Transactions we have broacast that are not confirmed yet appear in pending even though they
|
||||
may have unspent "change" outputs.<p>
|
||||
|
||||
Note: for now we will not allow spends of transactions that did not make it into the block chain. The code
|
||||
that handles this in BitCoin C++ is complicated. Satoshis code will not allow you to spend unconfirmed coins,
|
||||
however, it does seem to support dependency resolution entirely within the context of the memory pool so
|
||||
theoretically you could spend zero-conf coins and all of them would be included together. To simplify we'll
|
||||
make people wait but it would be a good improvement to resolve this in future.
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
spent</H3>
|
||||
<PRE>
|
||||
java.util.Map<K,V> <B>spent</B></PRE>
|
||||
<DL>
|
||||
<DD>Map of txhash->Transactions where the Transactions outputs are all fully spent. They are kept separately so
|
||||
the time to create a spend does not grow infinitely as wallets become more used. Some of these transactions
|
||||
may not have appeared in a block yet if they were created by us to spend coins and that spend is still being
|
||||
worked on by miners.<p>
|
||||
|
||||
Transactions only appear in this map if they are part of the best chain.
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
</DL>
|
||||
<HR>
|
||||
<H3>
|
||||
inactive</H3>
|
||||
<PRE>
|
||||
java.util.Map<K,V> <B>inactive</B></PRE>
|
||||
<DL>
|
||||
<DD>An inactive transaction is one that is seen only in a block that is not a part of the best chain. We keep it
|
||||
around in case a re-org promotes a different chain to be the best. In this case some (not necessarily all)
|
||||
inactive transactions will be moved out to unspent and spent, and some might be moved in.<p>
|
||||
|
||||
Note that in the case where a transaction appears in both the best chain and a side chain as well, it is not
|
||||
placed in this map. It's an error for a transaction to be in both the inactive pool and unspent/spent.
|
||||
<P>
|
||||
<DL>
|
||||
</DL>
|
||||
|
@ -41,7 +41,7 @@ public class Sha256Hash implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Hash code of the byte array as calculated by {@link Arrays.hashCode()}. Note the difference between a SHA256
|
||||
* Hash code of the byte array as calculated by {@link Arrays#hashCode()}. Note the difference between a SHA256
|
||||
* secure hash and the type of quick/dirty hash used by the Java hashCode method which is designed for use in
|
||||
* hash tables.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user